Hi all,
We use MVVM in our application and use XamDataChart to display data, We face following issues, Can anybody help me with sample application ?
Hello elinder,
Thank you for your post!
1. The Numeric Y-Axis in the XamDataChart has a MaximumValue and MinimumValue property, both of which can be bound to a property in your ViewModel. If you would like to set these, I would recommend investigating the collection you have bound to the series in that chart. If you keep track of the minimum and maximum values to be plotted, you can set these values to a property in your ViewModel, and bind them to the YAxis. Alternatively, you can leave these properties blank and the chart will determine the Y-Axis minimum and maximum values based on your data source.
2. To achieve this, I would recommend that you use either the ItemTooltipLayer or the CategoryTooltipLayer of the XamDataChart. The ItemTooltipLayer is demonstrated in the attached sample.
3. To achieve this, I recommend writing a style for your series. In this style, you can define a LegendItemTemplate. Then, I would recommend adding a Trigger to that same style, which targets the IsMouseOver property when it is true. When this trigger is hit, you can set the Thickness value of the series, and also set the LegendItemTemplate to have bold font.
I have attached a sample application to demonstrate the three recommendations above.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support