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
350
Highlighting data in a column / bar chart
posted

Hi Infragistics,

I'm trying to highlight some data in a bar or column series. I want a few of the columns to be highlighted, not just one category. In an ideal world, most of the columns would be semi-opaque, and the highlighted columns would not.

I'm populating my data from a view model, so the normal WPF way is to have an 'IsHighlighted' property in each data point view model, and use a data trigger in a style in Xaml. All very neat.

Not so, apparently. I've seen some horrendous workarounds on the forum for the people who come across this problem. The most likely solution was a few hundred lines of code.

Note, some have suggested I use a series for each column and set the opacity there. That doesn't work in my scenario because I'm also creating clustered and stacked charts.

Help!

Thanks

Pete

Parents Reply Children