Home forums Chart Support Stacked Column with Dynamic Data

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #27110

    How can i create a stacked column chart with dynamic data?

    For example, i have a JSON object like:
    id : ‘ID123’,
    occurrences: [5,6,8]
    id : ‘ID456’,
    occurrences: [7,2,12]

    Where there would be two stacked columns using the id as the label and the array of occurrences is used to build the stacked column?

    Note: the JSON object is external.



    You can loop through the JSON data and parse it to the format accepted by CanvasJS as shown in this JSFiddle.

    Indranil Deo
    Team CanvasJS

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

You must be logged in to reply to this topic.