Chart, dynamically loading the series

2 posts, 0 answers
  1. Victor
    Victor avatar
    1 posts
    Member since:
    Oct 2013

    Posted 18 Dec 2015 Link to this post

    I want to see only one series visible on page load. I have dynamically loading the series:

    .Series(series =>
           foreach (var def in Model.Series)

                  //.Visible(just year "2014")



  2. Iliana Nikolova
    Iliana Nikolova avatar
    2570 posts

    Posted 22 Dec 2015 Link to this post

    Hi Victor,

    For this scenario I would suggest the following approach:
    - Define only one series initially by specifying series.field. For working example check this online demo;
    - Dynamically add series via the chart.options.
    // get a reference to the chart widget
    var chart = $("#chart").data("kendoChart");
    // add series
    // set field to a particular series
    chart.options.series[1].field = "value"
    //refresh the chart

    Iliana Nikolova
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET AJAX banner
Back to Top