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

Remove the Legend in the Radchart

1 Answer 298 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Letoir
Top achievements
Rank 1
Letoir asked on 16 Dec 2011, 11:21 AM
How do i remove the legend in the radchart.
I dont need it and it takes to much place !!
thx 

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 20 Dec 2011, 04:17 PM
Hello Letoir,

You can set the legend's visibility to collapsed. With C# code you can do this:
this.radChart.DefaultView.ChartLegend.Visibility = System.Windows.Visibility.Collapsed;

In XAML you can use this:
<telerik:RadChart.DefaultView>
 <telerik:ChartDefaultView>
  <telerik:ChartDefaultView.ChartLegend>
   <telerik:ChartLegend Visibility="Collapsed" />
  </telerik:ChartDefaultView.ChartLegend>
 </telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>

You can check our help section here and you can download the examples from here as they will get you familiar with the chart's features.

Kind regards,
Petar Marchev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Letoir
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or