Hello!
Another that I have is this: Is it possible to override the zooming action so that the actual zoom doesn't happen (i.e. chart stays as it is), but instead a list of the points within the zoom window is returned, so that they can be filtered out to create a separate report on them?
Hi,
Please see: http://community.infragistics.com/forums/p/44025/242600.aspx#242600
Hope this helps!
-Graham
Before I proceed on this, I have a question: will it be possible to highlight somehow the points selected? Currently in our charts we highlight them with blue, but as I have read elsewhere on this forum that with XamDataChart it's not possible to style individual points. So, is that possible, and if yes -- how would I do it?
In general, you can color individual points by assigning a custom DataTemplate to the MarkerTemplate property of the series. Then you can bind a color in the marker to an underlying color on the individual data items. If those data items implement INotifyPropertyChanged, then when you change the color on the item the color on the point should be reflected.
So if you know which data items have been selected, you could modify their colors and have that change represented in the markers.
There are other ways to achieve this also. You could navigate the visual tree of the chart and find all visuals of type marker that are within the bounds of the box being drawn and override their color in some fashion, but the way first mentioned is more straightforward, if it suits your purposes.
Hope this helps! Let me know if you need more details. If you do a search for MarkerTemplate on these forums (the Silverlight and WPF version) you should see lots of examples of doing interesting things with custom marker templates.
Graham Murray"]In general, you can color individual points by assigning a custom DataTemplate to the MarkerTemplate property of the series. Then you can bind a color in the marker to an underlying color on the individual data items. If those data items implement INotifyPropertyChanged, then when you change the color on the item the color on the point should be reflected.
Can you give an example of how to do this?