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
2335
MarkerTemplate with label information
posted

Hi,

We are adding number of ScatterSeries in the chart dynamically and it is showing data proerly, and assigning a list of objects to the series.
We need to add marker with some label other then XMemberPath, YMemberPath. Can you help me to define Cutom marker like WorldStat demo?

 

Thanks

 

 

 

 

Parents
  • 30692
    Verified Answer
    Offline posted

    Hi,

    You can set the MarkerTemplate property of the series to a DataTemplate to use to display the markers for that series. The DataTemplate can refer to any of the properties of its containing series or any of the properties of the Item with which it is associated. For example, if you wanted your markers to be 5x5 rectangles that were colored based on a brush stored in each item in a property called Color, you could use this DataTemplate:

    <DataTemplate>
    	<Rectangle Width="5" Height="5" Fill="{Binding Item.Color}" />
    </DataTemplate>
    

    Hope this helps!

    -Graham

Reply Children
No Data