Hi, I need to obtain a Skacked Bar Series with labels insiede each piece of bar. Something like this but for bars and not columns.
I tried to convert a sample from column to bars with any results. Do you have any idea to do that?
Hello Francesco,
I have been investigating into a way to achieve the requirement you are looking for, and I would like you to take a look at the sample project I am attaching. In the sample project, I demonstrate how to place labels within the bars of a StackedBarSeries by utilizing the CalloutLayer. You can read more about usage of the CalloutLayer in the XamDataChart here.
Please let me know if you have any other questions or concerns on this matter.
XamDataChartStackedBarSeriesMarkersDemo.zip
i Andrew, thanks very much for the fast response. Unfortunately I can't run your project because I have v17.2 of Infragistics and I have a missing reference for CalloutLayer. Is it related to my old version?
Thank you for your response.
The CalloutLayer was added in version 18.2 of the Infragistics for WPF toolset, and so since you are using version 17.2, this would explain why you don’t currently have it. I would recommend upgrading to at least version 18.2 if at all possible though, as the CalloutLayer is the most reliable way to place labels in the StackedBarSeries.
With the StackedColumnSeries, there is a way to go about this using an external PointSeries instead of the CalloutLayer, but unfortunately the PointSeries does not work with the CategoryYAxis in this case.