Hi Folks
I need to create labels next to the markers on one of the many series displayed on the chart. I need to do it programmatically rather than in xaml as my XamDataChart is used in a numerous different ways.
So I'd like these markers to appear only for specific series. The requirement is that these will be in vicinity of the marker but do not overlay with the series. Dashed line and ability to move the label is optional.
Any help is greatly appreciated.
Thanks!
Michael
Thanks again. Your doc reference has paragraph about how to create callout layer programmatically.
Hi Divya, would you be able to make a sample project with codebehind for targeting specific series?
My XamDataChart DataContext is ViewModel with property:
ThreadSafeObservableCollection<ISeriesViewModel> Series
and then in ISeriesViewModel:
RangeEnabledObservableCollection<XYPoint> XyValues
and then
public XYPoint(double xValue, double yValue) { XValue = xValue; YValue = yValue; }
should I bind XMemberPath and YMemberPath to these properties?
For LabelMemberPath I have different Property within ViewModel of type List<MyObject>
and MyObject has a property Name which I want to use as a label....
Thanks
Michal
Hello,
Thank you for contacting. You are looking for Callout layer, refer to this doc.You can configure the callouts to target a specific series using TargetSeries property.
Let me know if you have any question.
Sincerely,Divya Jain