Articles in this section
Category / Section

How to set or modify the label of the each legends ?

1 min read


This article describes how to define the label for the legend items of the series.


You can the content of the legend icon label by changing the content of the series label by using the Label property in the series as in the following code examples.

D:\desktop\img.jpgNote: The screenshot is having the header for the legend that is defined by using the Header property of the ChartLegend.



<chart:SplineSeries Interior="DarkBlue" Label="SplineSeries" ItemsSource="{Binding}" 
XBindingPath="Speed" YBindingPath="Rate"/>
<chart:SplineAreaSeries Opacity="0.7" Interior="SkyBlue"  Label="SplineAreaSeries"      ItemsSource="{Binding}" XBindingPath="Speed" YBindingPath="Rate"/>



      multiChart.Series[0].Label = "Spline";
      multiChart.Series[1].Label = "SplineArea";



F:\Issue Files Chart\Issue File -10 Knowledge Base\WP_ScreenShot\Third Screen Shot for left 000\wp_ss_20150210_0054.png

Figure 1: SfChart with legend.

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment