populating Pie series label with more data in

2 posts, 0 answers
  1. Nilesh
    Nilesh avatar
    4 posts
    Member since:
    Nov 2013

    Posted 10 Feb 2015 Link to this post

    Good afternoon,

    I am trying to populate the Label with more than two values from which comes Database and one value is string and one is float. I want to convert  float value  to percentage.  I tried something like this. But it is displaying dataCol1 only, also I want format dataCol2 to  percentage. How I can I achieve this.

    Chart,LabelsAppearance.ClientTemplate = "#=dataItem.dataCol1#" + "<br/>" + "#=dataItem.dataCol2#"

  2. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 12 Feb 2015 Link to this post

    Hello Nilesh,

    You must ensure there are dataCol1 and dataCol2 data source field names. Note that the field names are case sensitive. Also the string concatenation is not necessary here.

    Regarding formatting values in templates you can use the kendo.format() method. See an example in the Formatting Numbers help article.

    Danail Vasilev

    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