SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
I have a very customised RolloverModifier in place for my main SciChart. I take the SeriesInfo data after your RolloverModifier OnModifierMouseMove has completed, grab the data and build my own objects that are later used to build a complex Legend for my SciChart, complete with Total / Average columns for the series data points, as well as some XAxis info (Dates) in rows.
I also define a TemplatableControl in my XAML (UserControl.Resources section) and assign it to the RolloverLabelTemplate property of the RolloverModifier, and it provides the little ToolTips when you hover the RolloverMarker on the various data points.
My question is – how could I possibly extend your SeriesInfo class, such that I can distinguish one Series from another for presentation. My specific problem is that some series that are added need to have one particular StringFormat, while others need a different StringFormat applied. If I could add a flag my custom RolloverModifier code, and then use a DataTrigger in the XAML, I’ll be home free.
I have tried creating a custom class to extend/implement SeriesInfo, and assigning a collection of those to the SeriesInfo property underneath the RolloverData object in my code, but the binding in the XAML doesn’t seem to be able to see the Properties in my extended class.
I’m a bit stuck here. Is it possible without performing open-heart surgery on RolloverModifier?
UPDATE JUNE 2014
There is a pretty thorough exposition of RolloverModifier SeriesInfo and how to extend the binding in this related post: RolloverLabelTemplate Show X and Y Value Separated.
Please login first to submit.