Home › forums › Using CanvasJS › Stacked step area
Tagged: contentFormatter, stacked stepArea, stepArea, tooltip
This topic contains 8 replies, has 4 voices, and was last updated by Michaelp 9 months, 1 week ago.
Can I produce a stacked step area chart?
I’m sorry but we don’t have stacked stepArea chart as of now. But you can use this workaround.
+1 for stacked stepArea charts.
How can I use contentFormatter to display the “real” y value for the first dataseries?
For example, in your workaround, how to display “10” for the first datapoint of the first dataseries, rather than “22”?
In regards to my previous comment, I mean display “10” in the tooltip.
Please take a look at this improved version of the previous example with toolTip formatted to show the actual Y value.
Thanks Indranil. It is a bit more complicated than I expected. How would you go about adding a line chart to your improved version. Do I have to add another function and data array to push the data into the object?
Please take a look at this jsfiddle. The dataSeries under the chart type “stepArea” are used for plotting the Stacked Step Area Chart.
Thanks Indranil. That works well. :-)
You must be logged in to reply to this topic.