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

Possible to disable the legend through code?

1 Answer 72 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Allan
Top achievements
Rank 1
Allan asked on 25 Jun 2009, 10:56 PM
Hi

Is it possible to disable the legend without using a custom style? I'd like to do it in the C# code if possible.

Allan   

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 01 Jul 2009, 08:44 AM
Hello Allan,

You can achieve the desired functionality like this:

RadChart1.DefaultView.ChartLegend.Visibility = System.Windows.Visibility.Collapsed; 


Hope this helps.


Greetings,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart
Asked by
Allan
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or