Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
665
XamDataChart legend
posted

Hi,

I am designing a wizard which allows a user to style a chart, so it's similar to the sample (XamDataChart > Display > Gallery - Category Series) they can choose the type of line series they want, it all works fine but the issue I'm having is that the legend data seems to be shared across all of the charts.

So I have 10 or so charts which are using the same legend (same as the sample) and I'm toggling visibility of the charts which I would expect the legend data to be changed based on that.

<ig:Legend x:Name="Legend" />

However I'm not binding the data like in the sample it's getting the data from the chart

How can I get around this so that the legend only shows data for that chart?

Thanks, Grant