You must be logged in to post your query.
Home › Forums › Chart Support › stacked column stacked all label into 1 column
Tagged: stacked column
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();
@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.
— Thangaraj Raman Team CanvasJS
You must be logged in to reply to this topic. Login/Register