Update only one serie

2 posts, 0 answers
  1. abigail
    abigail avatar
    10 posts
    Member since:
    Dec 2015

    Posted 11 Apr 2016 Link to this post

    Hi! I have a bar serie graph and linear serie graph in a rad html chart, the user can modify the values of the liner serie graph its possible I update by code the values of only linear bar but the radhhtml chart updatse both the graph and linear bar is possible only update the linear serie graph?
  2. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 14 Apr 2016 Link to this post

    Hello Abigail,

    For a data-bound chart you can modify the desired fields used by the particular series and then rebind the chart - http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/client-side-programming/overview

    For a non-databound chart you can modify directly the item values
    $find("ctl00_ContentPlaceholder1_BarChart").get_kendoWidget().options.series[0].data[0].value = 11000;

    You can try the above code by executing it in the browser console for this demo - http://demos.telerik.com/aspnet-ajax/htmlchart/examples/charttypes/barchart/defaultcs.aspx

    Danail Vasilev
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top