Change the title of an existing chart

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    35 posts
    Member since:
    Dec 2010

    Posted 07 Nov 2012 Link to this post

    I know how you can set the title of a chart when you first create it:

        title: {
            text: "Players in Error"
       /* etc */

    but is there any way to change it afterwards?

    I've tried this:

    var chart = $("#chart").data("kendoChart");
    chart.title = { text: kendo.toString(queryDate, "dddd MMMM d, yyyy") };

    but it doesn't have any effect.

  2. Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 09 Nov 2012 Link to this post

    Hello Andrew,

    You can change the chart's title through the options
    var chart =$('#chart').data('kendoChart');


    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top