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

TooltipAppearance display 2 items

2 Answers 23 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 07 Sep 2016, 11:12 PM

I'm trying to display both percentage and amount with a break point in between.  This is what i tried and a couple more, but they are not working.  Please help.

ClickSeries = New PieSeries

ClickSeries.TooltipsAppearance.ClientTemplate = "#= kendo.format(\'{0:P0}\', percentage)#<br />#={0:N0}#"

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 08 Sep 2016, 10:21 AM

Hello Joseph,

The second line is an invalid format declaration, you need to also add the kendo.format() function and an argument.

Here is an example that works fine and the effect is shown in the attached result.png:

Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
    If Not Page.IsPostBack Then
        Dim ClickSeries As PieSeries = New PieSeries
        ClickSeries.TooltipsAppearance.ClientTemplate = "#= kendo.format(\'{0:P0}\', percentage)#<br />#=kendo.format(\'{0:N0}\', value)#<br />#=value#"
        RadHtmlChart1.PlotArea.Series.Add(ClickSeries)
        ClickSeries.SeriesItems.Add(0.1)
        ClickSeries.SeriesItems.Add(0.4)
        ClickSeries.SeriesItems.Add(0.8)
    End If
 
End Sub

Regards,

Marin Bratanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Joseph
Top achievements
Rank 1
answered on 08 Sep 2016, 10:15 PM
Thank You that worked.
Tags
Chart (HTML5)
Asked by
Joseph
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Joseph
Top achievements
Rank 1
Share this question
or