Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Label on Marker on a XamDataChart
posted

Is there a way I can add a label right next to a marker?

The idea is to plot a series (or multiple) on a XamDataChart and allow the user to add a label to a Marker on one of the series/s. 

  • 34510
    Verified Answer
    Offline posted

    Hi Martin,

    You can customize the way the marker looks by providing a DataTemplate to the series MarkerTemplate property.  For example:
    http://help.infragistics.com/doc/WPF/2015.2/CLR4.0/?page=DataChart_Displaying_Marker_Values.html

    With a custom marker template you can add a label to the marker.  You can also find a bunch of templates listed here for the current marker shapes that we support:
    http://help.infragistics.com/doc/WPF/2015.2/CLR4.0/?page=DataChart_Customizing_Markers.html

    The idea here is that you can take the marker shape template and then add a label to the template in order to display the desired text.