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

Match remote odata from two sources in one chart

3 Answers 12 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Veteran
Andrey asked on 21 Jan 2020, 08:26 AM

Hi, dev teams!

I have two odata source with data like:

ds1 = [id, title] - unique entities here

ds2 = [id,year,value] - multiples entities

 

I need *title*(ds1) for axeY and *year*(ds2),*value*(ds2) for axeX

So, how i can match this data to one chart by *id*?

 

3 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 23 Jan 2020, 07:53 AM

Hi Andrey,

 

Out of the box the Chart widget works with a single DataSource. What I can suggest in order to show the data is join the database tables on the server and return the result to the client-side. Then one Kendo DataSource can consume the data and pass it to a Chart widget.

 

Regards,
Viktor Tachev
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.
0
Andrey
Top achievements
Rank 1
Veteran
answered on 24 Jan 2020, 08:18 AM

Hi Victor,

Well, or i can concat data dynamically to single kendo DataSource in client? if yes, please tell my how?

Thank you for your reply!

0
Alex Hajigeorgieva
Telerik team
answered on 28 Jan 2020, 11:08 AM

Hi, Andrey,

You can make two separate ajax calls and using promises wait until they are both complete, concatenate the result using the array method concat() and then initialize the chart.

Regards,
Alex Hajigeorgieva
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
Andrey
Top achievements
Rank 1
Veteran
Answers by
Viktor Tachev
Telerik team
Andrey
Top achievements
Rank 1
Veteran
Alex Hajigeorgieva
Telerik team
Share this question
or