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
Or maybe I could use mutliple category highlight layers. They almost suit my requirement, if I can highlight more than one category, and I can set which categories are highlighted programatically?
thanks
Thanks Matt, I've seen that post before and others like it trying to solve roughly the same problem, and it really doesn't really help.
Your example shows how to change a style in response to mouse enter. This is not even close to my requirement. I have data points set from view models. I need to set the style programatically, whether it be mvvm or any other way.
I'm having to use code-behind already, just to use a dynamic number of series. I don't mind continuing like that, if I can only find a solution.
I also tried a data trigger in the implicit rectangle style, but you are not passing the data item through.
Highlighting data is the most simple and fundamental requirement in a chart. It's a shame if it's not possible.
HI Peter,
I found a post that may help you resolve your issue:
http://es.infragistics.com/community/forums/t/51834.aspx
Sincerely, Matt
Developer Support Engineer