Home Forums Chart Support Bar chart construction with dynamic values

Bar chart construction with dynamic values

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

    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

    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

    @spram7788,

    Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

    #22200

    @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

    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

    @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.