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

Values not showing above bar in bargraph

2 Answers 39 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Cindie Tenneson
Top achievements
Rank 1
Cindie Tenneson asked on 15 Jun 2009, 07:38 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Velin
Telerik team
answered on 18 Jun 2009, 10:11 AM
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.
0
Cindie Tenneson
Top achievements
Rank 1
answered on 18 Jun 2009, 02:06 PM
Thank you this worked great.  I also used the following to get the numbers above the bars:  

currentSeries.Appearance.ShowLabels =

True

 

Tags
Chart (Obsolete)
Asked by
Cindie Tenneson
Top achievements
Rank 1
Answers by
Velin
Telerik team
Cindie Tenneson
Top achievements
Rank 1
Share this question
or