Home › forums › Using CanvasJS › Need for dataPoints in column chart with same X value to be stackedColumn
This topic contains 5 replies, has 2 voices, and was last updated by acke57 1 year, 4 months ago.
I have the following example of data with some Points having same x,y values which means they apear in the Column chart overlayed on each other – is there a way to have them appear stacked on top of each other like in stackedColumn chart type.
see working sample to illustrate the issue: http://jsfiddle.net/yjxoLr9e/
just a working fiddle: http://jsfiddle.net/acke57/um7n6dgb/
You can use stackedColumn chart which automatically stacks the dataPoints with same X values in different dataSeries. Please refer this jsfiddle.
No, since the datapoints are IN THE SAME dataSeries – see this fiddle: http://jsfiddle.net/acke57/um7n6dgb/
In stackedColumn, dataPoints with same x-values will stack one on top of another. So by setting type to ‘stackedColumn’ will work fine in your case (with single dataSeries also). Please check this updated jsfiddle.
OK, tested and works as you described – thanks for pointing this out.
You must be logged in to reply to this topic.