Skip to content

DevExpress-Examples/wpf-chart-implement-a-custom-template-for-series-labels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Chart - How to Implement a Custom Template for Series Labels

The following example demonstrates how to change the appearance of series labels.

Chart

To accomplish this, create a System.Windows.DataTemplate that specifies the appearance of series labels, and add it to a window's resource. Then, this template can be applied to a series label with its ChartTextElement.ElementTemplate property.

Note that the chart control displays a crosshair cursor instead of series labels in the diagram by default.

To implement series labels customization, enable series labels (set the Series.LabelsVisibility property to true). If you wish, you can disable the crosshair cursor (set the ChartControl.CrosshairEnabled property to false).

Files to Review

Documentation

About

The following example demonstrates how to change the appearance of series labels.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •