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

Hiding Chart Legend Title

3 Answers 56 Views
Chart
This is a migrated thread and some comments may be shown as answers.
mike
Top achievements
Rank 1
mike asked on 15 Feb 2011, 10:35 PM
Is there a way to hide the Chart's Legend Title? How about setting the text?

3 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 18 Feb 2011, 10:21 AM
Hi mike,

To be able to hide the Chart Title you should set it's Visibility property to Collapsed like this:
RadChart.DefaultView.ChartTitle.Visibility = System.Windows.Visibility.Collapsed;

The following help topic describes how to set custom text for the Chart Title.

Greetings,
Evgenia
the Telerik team
0
Grégory
Top achievements
Rank 1
answered on 08 Apr 2011, 03:38 PM
This way one could hide the name of the chart. How about the LEGEND's title of the chart?
0
Evgenia
Telerik team
answered on 12 Apr 2011, 01:38 PM
Hello Grégory,

I'm sorry for omitting "Legend" in Mike's question. To hide the Legend's Header just set it to white space string like this:
this.RadChart1.DefaultView.ChartLegend.Header = " ";

All the best,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
mike
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Grégory
Top achievements
Rank 1
Share this question
or