Removing label from individual bars in chart

2 posts, 0 answers
  1. Terry
    Terry avatar
    157 posts
    Member since:
    Jul 2009

    Posted 29 Sep 2009 Link to this post

    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!
  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 01 Oct 2009 Link to this post

    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.
Back to Top