Home forums Using CanvasJS Bar chart construction with dynamic values

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by  Vishwas R 1 month, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22190

    spram7788
    Member

    Hi,

    I have to construct the chart as per the below requirement.
    in the tooltip, it should display total as mentioned in the below image.
    imgur.com/a/YZIGzJ6

    inputs are highly appreciated. Thanks for the support in advance.

    Thanks.

    #22192

    spram7788
    Member

    Please find the sample input JSON for the above-requested one.

    {“licenseSummary” : [{“serverName”:”server 1″,”licenseData”:[{“licenseType”:”User license”,”licenseData”:{“available”:”32″,”used”:”66″}}, {“licenseType”:”Group license”,”licenseData”:{“available”:”32″,”used”:”66″}}]},{“serverName”:”server 2″,”licenseData”:[{“licenseType”:”User license”,”licenseData”:{“available”:”32″,”used”:”66″}}, {“licenseType”:”Group license”,”licenseData”:{“available”:”32″,”used”:”66″}}]}]}

    Thanking you.

    #22199

    Vishwas R
    Keymaster

    @spram7788,

    Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

    #22200

    spram7788
    Member

    @vishwas R

    Thanks a ton, I have seen the grouping of labels combined as per the server level.
    it would be good to segregate user level at one time and group level at one time.

    Again thanks for your response.

    #22203

    spram7788
    Member

    Hi Vishwas,

    How to segregate the labels on bars based on user and group.
    example.
    for user bar
    Server 1
    Total license: 32+66
    user license Available: 32
    user licnese used : 66
    for group bar
    Server 1
    Total license: 32+66
    user license Available: 32
    user licnese used : 66

    Same for server 2.
    Server 2
    Total license: 32+66
    license Available: 32
    licnese used : 66

    and also while integrating this one into my code chart.render() is not compatable to my version. it seems our jquery 1.2 which is very old version. how to resolve this, Please advice.

    Thanks.

    #22230

    Vishwas R
    Keymaster

    @spram7788,

    Sorry, its not possible to show toolTip separately for same x-value when toolTip shared property is set to true. However you can format toolTip content using contentFormatter. Please take a look at this updated jsfiddle.


    Vishwas R
    Team CanvasJS

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.