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

Plot bands from Dynamic data

1 Answer 167 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Devendra
Top achievements
Rank 1
Devendra asked on 04 Aug 2015, 03:22 AM

Hello,

Can we build the plot bands with dynamic data. In this example http://demos.telerik.com/kendo-ui/bar-charts/plotbands here the values for plot bands are hard coded. Can we specify the values from web service here?

 Best Regards,

Devendra

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 05 Aug 2015, 03:26 PM
Hello,

The chart does not have built-in support for loading the plotband values remotely. You could make an Ajax request to the service and initialize the chart in the success callback with the values from the response set to the from and to options.  If the values should somehow be determined based on the data bound with the dataSource then you could also use the dataBound event to set the plotBands option.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Devendra
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or