How to show value in Tooltip of ColumnSeries?

4 posts, 2 answers
  1. Saqib
    Saqib avatar
    24 posts
    Member since:
    Jan 2014

    Posted 14 Apr 2014 Link to this post

    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
  2. Answer
    Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 15 Apr 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Saqib
    Saqib avatar
    24 posts
    Member since:
    Jan 2014

    Posted 18 Apr 2014 in reply to Danail Vasilev Link to this post

    SInce I have converted my chart code to use databind; now how would I color different each item in SeriesItem?
  5. Answer
    Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 22 Apr 2014 Link to this post

    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.

     
Back to Top