Home Forums Chart Support Stacked Column with Dynamic Data

Stacked Column with Dynamic Data

Viewing 2 posts - 1 through 2 (of 2 total)
  • #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.

    #27154

    @1alexritchie1,

    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.