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
325
How to override Legend Items, when two legends exist?
posted

Hi all,

I'm aware of how to override legend items through various examples, but all those examples are based on the fact that only one legend exists.

I'm using a composite chart to show a column and line chart, and am showing legend items for each.  However I need to override the legend for the column chart (I need it to show the series labels), but leave the line legend intact.

Iterating through the primitives, I can't seem to find a way of working out which primitives apply to which legend.  I thought either the layer, or chart property might give me this, but the layer always appears to be null, and the chart always appears to be 'ColumnChart'.

How can I differentiate primitives belonging to the appropriate legends?

Thanks in advance...