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

Removing label from individual bars in chart

1 Answer 83 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 30 Sep 2009, 01:14 AM
Hi:

Is there a way to remove the value of the invidividual bars in a bar chart?  I'm showing numbers in the millions and things are looking too busy.  I just want the user to extrapolate to the y-axis to get the total amount.

If I can remove the number, it would be nice if I could show the amount as a tooltip.  Is that possible?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 01 Oct 2009, 08:50 AM
Hi Terry,

You can use the series definition to enable/disable/format elements like labels and tooltips:

RadChart1.DefaultView.ChartArea.DataSeries[0].Definition.ShowItemLabels = false;
RadChart1.DefaultView.ChartArea.DataSeries[0].Definition.ShowItemToolTips = true;


By default the tooltip will show the YValue, but  you might want to format it using the different tokens described here.

RadChart1.DefaultView.ChartArea.DataSeries[0].Definition.ItemToolTipFormat = "#X - #Y";

Sincerely,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart
Asked by
Terry
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or