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

Bar chart - datasource overlay one another

1 Answer 10 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 27 Apr 2019, 04:25 PM

I have two datasource, how to achieve overlay one datasource to another datasource bar like in this example https://docs.telerik.com/kendo-ui/knowledge-base/chart-overlay-bar-series

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 30 Apr 2019, 08:13 AM
Hi Michael,

If you have two DataSource instances that will request the data with separate requests, the only option for binding the Chart with the data from both of them is by requesting the data (by calling the "read" method of each of the DataSources) and after the data is available, use the "data" method to get reference to the created dataItems. You can then initialize the Chart by passing the data to each of the series in the initialization settings, as shown in the HowTo article.


Regards,
Konstantin Dikov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Charts
Asked by
Michael
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or