Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > Stacked Column Legend in Tooltip

Not answered Stacked Column Legend in Tooltip

Feed from this thread
  • Gene avatar

    Posted on Jun 26, 2012 (permalink)

    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!

    Reply

  • Iliana Nikolova Iliana Nikolova admin's avatar

    Posted on Jun 28, 2012 (permalink)

    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.

    Reply

  • Gene avatar

    Posted on Jun 29, 2012 (permalink)

    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!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > Stacked Column Legend in Tooltip