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
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.
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.