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

OHLC StockChart not displaying data

2 Answers 101 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Lena
Top achievements
Rank 1
Lena asked on 28 Dec 2012, 06:39 AM
Hi guys,

I'm using Kendo UI StockChart on my page. My data looks like this:

[{date:new Date(2012,11,27),open:26.89,high:27.09,low:26.57,close:26.96},
{date:new Date(2012,11,26),open:27.03,high:27.20,low:26.70,close:26.86},
...
]

As I understand, it is a valid stock chart data source format, but I get no data shown. My project is attached.

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 28 Dec 2012, 02:33 PM
Hi,

 You should include either kendo.all.min.js or kendo.dataviz.min.js (the first includes the latter). Also kendo.dataviz.stock.min.js is included in kendo.dataviz.min.js. You should also set the type to "ohlc" (small caps).

 Here is a live demo based on your data: http://jsbin.com/aqivux/1/edit

Kind regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lena
Top achievements
Rank 1
answered on 29 Dec 2012, 07:16 AM
Thanks for your answer. I've found the main problem: my data wasn't sorted in ascending order by date (the same issue is reproduced in your demo: just one point is displayed).
Tags
Charts
Asked by
Lena
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Lena
Top achievements
Rank 1
Share this question
or