1. Is it possible to have the label associated with each column in a stacked column chart to have multiple lines of text? I tried putting "<br/>" but that did not work.
2. How can I label each stacked part of the column? Mouse over works fine, but I would like text to be display on each segment of the stacked column.
FYI, I am using 13.2.
Thanks,
Arthur
Are these features not available for igDataChart?
Hello haimai ,
Thank you for posting in our forum. Please find the answers to your questions below.
--
1) Is it possible to have the label associated with each column in a stacked column chart to have multiple lines of text?
I’m assuming you mean the tooltips that appear when you hover over a stacked column.
For the tooltips you can assign a tooltip template so that the items can be displayed in separate lines.
There’s a similar example here:
http://www.igniteui.com/data-chart/series-tooltips
2) How can I label each stacked part of the column?
The tooltips by design appear only on hover. If you want to add permanent labels on top of the stacked column elements you could use a custom marker template.
Markers appear on the data points of the series. By setting a marker template you are taking over the rendering of the marker completely, which would allow you to add text or some other representation of the data point.
There’s a similar example with a column chart where text is added on top of each column element here:
http://es.infragistics.com/community/forums/p/73538/371912.aspx#371912
A similar approach can be used to add text on each stacked chart.
I’ve attached an example for your reference where for one of the series a custom marker template is added. It will add the value of the stacked bar segments of the specific series as a label in the middle of segment.
Let me know if you’re aiming to achieve something similar.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support