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

[Solved] Stacked Column Legend in Tooltip

2 Answers 157 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gene
Top achievements
Rank 1
Gene asked on 26 Jun 2012, 02:03 PM
Is is possible to include the Legend description in the tooltip for a stacked column graph?

That is, I would like the tooltip for a segment of a stacked column to show both the segment legend identifier along with the segment value.

Thank you!

2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 28 Jun 2012, 01:48 PM
Hello Gene,

You could customize the text in the tooltip via its properties. For your scenario you need the series variable in the template. For example:  
$("#chart").kendoChart({
 //....
 tooltip: {
    visible: true,
    template: "#= series.name # , value: #= value # %"
 }
});

For convenience, I prepared a small jsFiddle example which illustrates such approach in action.

More detailed information about the Kendo UI Chart is available in our online documentation.

Greetings,

Iliana Nikolova
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
Gene
Top achievements
Rank 1
answered on 29 Jun 2012, 12:31 PM
Thank you Iliana!

Although this question was in relation to the Telerk MVC Chart control, not Kendo., I was able to use the "series.name" reference in my tooltip template and that resolved the issue.

Thanks again!
Tags
General Discussions
Asked by
Gene
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Gene
Top achievements
Rank 1
Share this question
or