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

Labels Template on charts

3 Answers 478 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Claudia
Top achievements
Rank 1
Claudia asked on 17 May 2012, 10:53 PM
Hi there,

I wonder if I can add an extra information on the labels for my pie chart. Attached the preview. Regards. Claudia

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 18 May 2012, 06:48 AM
Hi,
You can use a label template to access the field in the data item:
labels: {
    template: "#= category # - #= percentage # - $#= e.dataItem.money #b"
}


Full list of template variables for the pie chart labels:
  • value - the point value
  • percentage - the point value represented as a percentage value
  • category - the category name
  • series - the data series
  • dataItem - the original data item used to construct the point.

I hope this helps.

Greetings,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Trent Jones
Top achievements
Rank 1
answered on 22 Jul 2014, 07:40 PM
I need to be able to change a label to be a hyperlink on a chart.  Is something like this available?
-Trent
0
T. Tsonev
Telerik team
answered on 25 Jul 2014, 01:53 PM
Hello,

I'm afraid adding a hyperlink to the series labels is currently not supported.

There isn't a suitable click event as well. This is something that we need to address sooner than later.

Apologies for the caused inconvenience.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Claudia
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Trent Jones
Top achievements
Rank 1
Share this question
or