Values not showing above bar in bargraph

Thread is closed for posting
3 posts, 1 answers
  1. Cindie Tenneson
    Cindie Tenneson avatar
    14 posts
    Member since:
    Dec 2008

    Posted 15 Jun 2009 Link to this post

    My bargraph is not showing the yvalue at the top of the bar in the bargraph.  What is the property for this and how to I set it in code? (Visual Basic)  Also how can you make the yvalue show when hover over the bar?

    There is no value at the top of my bars at this time.

    Thanks,
  2. Answer
    Velin
    Admin
    Velin avatar
    391 posts

    Posted 18 Jun 2009 Link to this post

    Hi Cindie,

    You can toggle the series items visibility with the Appearance.LabelAppearance.Visible property.

    To show the YValue of the item on hover you can subscribe to the ItemDataBound event and set the ActiveRegion.Tooltip to the corresponding value.
    Sub RadChart1_ItemDataBound(sender As Object, e As ChartItemDataBoundEventArgs) 
        e.SeriesItem.ActiveRegion.Tooltip = e.SeriesItem.YValue.ToString() 
    End Sub 


    All the best,
    Velin
    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.
  3. Cindie Tenneson
    Cindie Tenneson avatar
    14 posts
    Member since:
    Dec 2008

    Posted 18 Jun 2009 Link to this post

    Thank you this worked great.  I also used the following to get the numbers above the bars:  

    currentSeries.Appearance.ShowLabels =

    True

     

Back to Top