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

Tooltip template and serie's name

3 Answers 162 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 14 Dec 2011, 07:16 PM
Hi,

I would like to customize tooltip for a line chart using templates. I need a serie's name and value but can't get it to work (I can only get category name).

I would appreciate help on this.


Thanks,

Igor

3 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 16 Dec 2011, 06:21 PM
Hi Igor,

Thank you for contacting us.

Can you examine this online help topic.

All the best,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Igor
Top achievements
Rank 1
answered on 17 Dec 2011, 09:53 AM
Hi Hristo,

thanks for the link. I have previously examined online demo, but I still can't figure out how to get the name of the series (not category name).

I would appreciate a small code sample.


Thanks,

Igor
0
Accepted
Hristo Germanov
Telerik team
answered on 18 Dec 2011, 01:03 PM
Hi Igor,

From the data series you can get the name of the series:

tooltip: {
    visible: true,
    template: "${series.name}"
}

Kind regards,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Igor
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Igor
Top achievements
Rank 1
Share this question
or