This is a migrated thread and some comments may be shown as answers.

Update only one serie

1 Answer 42 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
abigail
Top achievements
Rank 2
abigail asked on 11 Apr 2016, 05:45 PM
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?

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 14 Apr 2016, 12:47 PM
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;
$find("ctl00_ContentPlaceholder1_BarChart").get_kendoWidget().redraw();

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

Regards,
Danail Vasilev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Chart (HTML5)
Asked by
abigail
Top achievements
Rank 2
Answers by
Danail Vasilev
Telerik team
Share this question
or