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

How to show value in Tooltip of ColumnSeries?

3 Answers 208 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Saqib
Top achievements
Rank 1
Saqib asked on 15 Apr 2014, 12:04 AM
Hi,
I m having hard time to display value in tooltip field of column series. Anytime I tried to set value, I always see Y value in tooltip.
See below the way I m adding series and tried to modify tooltip value.
For Each r As DataRow In ds2.Tables(0).Rows
    Dim item As New SeriesItem
    Dim name As String = r.Item("FVID")
    Dim vol As Integer = r.Item("total")
 
    item.Name = name       
    item.YValue = vol
    item.TooltipValue = name    <-- NOT WORKING
 
    barChartSeries.Items.Add(item)
 
    Dim xaxis As New AxisItem(name)
    BarChart.PlotArea.XAxis.Items.Add(xaxis)
Next

3 Answers, 1 is accepted

Sort by
0
Accepted
Danail Vasilev
Telerik team
answered on 15 Apr 2014, 01:01 PM
Hi Saqib,

The TooltipValue property is available only for the BubbleSeries. If you want to display custom values in the tooltips you must bind the chart and use templates. More information on the matter is available in this online demo and the following set of articles:



Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Saqib
Top achievements
Rank 1
answered on 18 Apr 2014, 03:34 PM
SInce I have converted my chart code to use databind; now how would I color different each item in SeriesItem?
0
Accepted
Danail Vasilev
Telerik team
answered on 22 Apr 2014, 01:26 PM
Hi Saqib,

For a databound chart you can use the ColorField property exposed by each series. Such an example is illustrated in this online demo.

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart (HTML5)
Asked by
Saqib
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Saqib
Top achievements
Rank 1
Share this question
or