MVC5 : Chart shared tool-tip title Format & programmatically add grouped legend

3 posts, 0 answers
  1. medialog
    medialog avatar
    25 posts
    Member since:
    Sep 2010

    Posted 19 Jan 2016 Link to this post


     Please find the attached image, 

    1- i need to format shared tool tip  title as dd/MMM/yyyy , knowing that i was able to create a template and it works for the tool-tip but not for the title. 

     2-the legend in the attached image represents the Series lines example 2016-* And PY-* is 2016 & PY(2015), i need to pro grammatically  group them in one legend as * so when i click * it will visible OR invisible the two Series  2016-* And PY-* 

    Thanks for helping.



  2. Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 21 Jan 2016 Link to this post

    Hi Cyrille,

    Up to the questions:
    1- For this one you could use sharedTemplate. As an example: 
    .Tooltip(t=>t.Visible(true).Shared(true).SharedTemplate("#= kendo.toString(category, 'd') # <br/> Some other tooltip content "))

    2- This scenario is not supported by Kendo UI Chart and in order to achieve it you need custom implementation. Providing assistance related to custom implementations is outside the scope of our support services, however I would suggest changing series.visibility via the chart.options and redrawing the chart.
    // get reference to the chart widget
    var chart = $("#chart").data("kendoChart");
    // hide the second series
    chart.options.series[1].visible = false
    // redraw the chart

    Iliana Nikolova
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. medialog
    medialog avatar
    25 posts
    Member since:
    Sep 2010

    Posted 22 Jan 2016 in reply to Iliana Nikolova Link to this post

    Thank you Iliana


Back to Top