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

[Solved] having multiple Line Chart in same page supported?

4 Answers 362 Views
Charts
This is a migrated thread and some comments may be shown as answers.
leo
Top achievements
Rank 1
leo asked on 20 Jan 2015, 02:41 AM
Hi,

I am using JSP, I just want to know if I can create a line chart with different data on it. I am planning to put the script to createChart inside the loop along with the json for its data. :)


Is this possible, because I have read something on the internet that this is not supported.

4 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 21 Jan 2015, 12:30 PM

Hi Leo,

In order to display different data on Kendo UI Chart I would suggest to bind it to dataSource (like in most of the demos). Hence when this dataSource is changed the chart will automatically refresh.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
leo
Top achievements
Rank 1
answered on 22 Jan 2015, 06:32 AM
Thank you for your answer.

Your answer was about the chart refreshing when the datasource is changed, right?
But, is it possible to have two line charts with different datasource on the same page?
0
Accepted
Iliana Dyankova
Telerik team
answered on 23 Jan 2015, 09:29 AM
Hi Leo,

First of all I would like to apologize - it appears I misunderstood your question. As for the number of Kendo UI charts on the same page - you can display as many charts as you want. Take a look at this example - although it is for bullet chart it demonstrates how to display multiple charts with different dataSources.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
leo
Top achievements
Rank 1
answered on 27 Jan 2015, 09:54 AM
Fixed now. Thanks! :D
Tags
Charts
Asked by
leo
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
leo
Top achievements
Rank 1
Share this question
or