This is a migrated thread and some comments may be shown as answers.

Line Series LegendSettings

1 Answer 138 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Johnny
Top achievements
Rank 2
Johnny asked on 22 May 2013, 03:29 AM
Hello,

All of the examples I could find about Line Series LegendSettings are shown in the xaml markup. Is there a way to set the Title property in code?

XAML:
<telerik:LineSeries.LegendSettings>
           <telerik:SeriesLegendSettings Title="Sold"/>
 </telerik:LineSeries.LegendSettings>

C#:
LineSeries units = new LineSeries() { LegendSettings = ? };

Thanks,

Johnny

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 24 May 2013, 01:32 PM
Hi Johnny,

Here is how to set it:

LineSeries units = new LineSeries() { LegendSettings = new SeriesLegendSettings() { Title = "My Title" } };


Best regards,
Ves
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Johnny
Top achievements
Rank 2
Answers by
Ves
Telerik team
Share this question
or