Hi,
I'm using a stacked column graph, and i'd have some questions:
1-How can I have a legend for all the stacked fragment of the column?
2-Can I have a line series too with the stacked column?
3-Is it possible to have the value of the fragment in the tooltip?
4-Can I activate the graph transition?
Hello Luca,
Please find answers to your questions below:
You just need to set the legend property for the parent series:
series: [{ name: "parent", legend: { element: "legend" }, series: [{ …
Yes, you can render both line and stacked series on the same chart.
You can read the value of the current fragment in the tooltipShowing event:
tooltipShowing: function (evt, ui) { console.log(ui.item[ui.series.name]); },
I do not understand what you mean, please provide more details around your requirement.
I am attaching a sample that is demonstrating the suggested solutions. Please let me know if you have further questions, I will be glad to help.
stacked.zip
Ok thank you. Legend and Line series works.
Tooltip doesn't work. Tooltip it's empty.
For my forth questions i mean the animation of the graph. When the page load all the bar of a standard datachart start from 0 value and grow to own value. With stacked graph is there this animation?