Home Forums Chart Support stacked column stacked all label into 1 column

stacked column stacked all label into 1 column

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

    The datapoints below unable to show by each label, it only show last label ABC437 then stacked all Y in the same column.

    data: [
    {
    type: “stackedColumn”,
    showInLegend: true,
    yValueFormatString: “# unit”,
    name: “SHUTDOWN”,
    dataPoints: [{“y”:2, ‘label’:”ABC437″}]
    },
    {
    type: “stackedColumn”,
    showInLegend: true,
    yValueFormatString: “# unit”,
    name: “POWERON”,
    dataPoints: [{“y”:2, ‘label’:”ABC437″}]
    },
    {
    type: “stackedColumn”,
    showInLegend: true,
    yValueFormatString: “# unit”,
    name: “Functional”,
    dataPoints: [{“y”:1, ‘label’:”ABC435″}]
    },
    {
    type: “stackedColumn”,
    showInLegend: true,
    yValueFormatString: “# unit”,
    name: “ERROR`”,
    dataPoints: [{“y”:2, ‘label’:”ABC437″}]
    },
    ]

    });

    chart.render();

    #44312

    @chteow,

    In the case of Stacked Charts, datapoints across multiple dataseries are aligned based on x-values and not labels. Passing x-value along with the label should work fine in this case.

    Please take a look at this JSFiddle for a working example on the same.

    StackedColumn chart aligned based on x-values


    Thangaraj Raman
    Team CanvasJS

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

You must be logged in to reply to this topic.