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

Kendo Line Chart vs Kendo Stock Chart

8 Answers 168 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 27 Feb 2013, 10:17 AM
Hey,
Ive got a set of data which im using for a kendo line chart and it renders it fine, I use the same dataset on a stockchart (type: line) and choose the same baseUnit as the line chart and it crashes. It happens probably because there are too many point. Could this be the case that a simple line chart can handle that amount of points and the stock chart cant.
Regards,
Neil

8 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 28 Feb 2013, 11:43 AM
Hi Neil,

I am not quite sure what causes the described behavior in your applications. Is it possible to send a simple jsFiddle / jsBin example which demonstrates the issue? This way I would be able to investigate what is going wrong and provide concrete recommendations. Thank you in advance for your time.

Kind regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Neil
Top achievements
Rank 1
answered on 04 Mar 2013, 04:19 PM
Hey, I thought adding a large file to jsBin will be a bit daft so Ive attached 3 files for You to check:

1.tenmin.json -  the data file
2.line - the line chart that works with data
3.stock chart that works with data if the base unit is selected to hours, but when I try to select to minutes it crashes ( and I do need minutes, the data is every 10minutes) Id like the stock chart to be the same way the simple line chart is, but it crashes whenever I change the baseUnit.
Either Im doing something wrong or it just too much of data.
Regards and thank You
0
Iliana Dyankova
Telerik team
answered on 07 Mar 2013, 09:40 AM
Hi Neil,

Thank you for the examples. 

Your configuration is totally valid, however there are too many points and such points cannot be rendered. Please have in mind the idea of Kendo UI StockChart is to use the navigator and browse of extended time periods. Do you really need to plot minutes on the StockChart's categoryAxis?
 
Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Neil
Top achievements
Rank 1
answered on 07 Mar 2013, 09:48 AM
Hey Thanks for You reply,
Could You tell me what is the maximum point number the stock chart CAN handle ?
0
Victor
Top achievements
Rank 1
answered on 07 Mar 2013, 04:01 PM
I would also like to know max data points a Kendo linechart can render? Also what is optimal number of points for best performance?
Thanks
0
Iliana Dyankova
Telerik team
answered on 11 Mar 2013, 08:47 AM
Hi guys,

I am afraid there is no a specific answer to this question. By design Kendo UI Chart / StockChart render data visualizations and when there are too many points the graph will not be readable. In addition, the best visualization is reached when there is a single point per pixel.

Kind regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
osman
Top achievements
Rank 1
answered on 07 Jun 2013, 10:55 AM
$("#linechart").kendoChart({
                        title: {
                            text: "Tüketim/kg"
                        },
                        series: [{
name:"a",
                            type: "line",
                            data: [0.9346,0.1714,0.03808]  },{
name:"b",
                            type: "line",
                            data: [0.079, 5 , 0.02]                        },{
name:"buhar",
                            type: "line",
                            data: [5.3,0.82,3]                        }],
                        categoryAxis: {
labels:
                      {
                          rotation: -90,
                          dateFormats:
                              {
                                  minutes: "HH:mm",
                                  hours: "HH:mm",
                                  days: "dd/MM/yyyy",
                                  months: "dd/MM/yyyy",
                                  years: "yyyy",
 weeks:"dd/MM/yyyy"
                              }
                      }, type: "Date", baseUnit: "days", 
                          
                            categories: ["2013-01-11","2013-01-12","2013-01-13"]                        }
,tooltip: {
              visible: true,
 template: "#= tooltipTemplate(dataItem) #"
              
          },seriesHover: tip
 ,
        navigator: {
            series: {
                type: "column"
            }
        }
                    });

how can i add navigor to this chart ?
0
Iliana Dyankova
Telerik team
answered on 10 Jun 2013, 01:48 PM
Hello Osman,

I am afraid presently the navigator is available only for Kendo UI StockChart and it cannot be used with other chart types. Currently you could use the categoryAxis.select option. For working example check this online demo.
 
Regards,
Iliana Nikolova
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
Neil
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Neil
Top achievements
Rank 1
Victor
Top achievements
Rank 1
osman
Top achievements
Rank 1
Share this question
or