2X faster development
The ultimate UWP UI toolkit to boost your development speed.
Description: This article describes how to define the label for each legend items of the series.
Solution: The content of the legend icon label is changed by changing the content of the series label using the Label property in the series as shown in following code examples. Note: The screenshot has the header for the legend that can be defined by using the Header property of the ChartLegend.
XAML <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"/> C# multiChart.Series[0].Label = "SplineSeries"; multiChart.Series[1].Label = "SplineAreaSeries"; OutputFigure 1: SfChart with legend. |
2X faster development
The ultimate UWP UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.