OHLC StockChart not displaying data

3 posts, 0 answers
  1. Lena
    Lena avatar
    2 posts
    Member since:
    Dec 2012

    Posted 28 Dec 2012 Link to this post

    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. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 28 Dec 2012 Link to this post

    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!
  3. Lena
    Lena avatar
    2 posts
    Member since:
    Dec 2012

    Posted 29 Dec 2012 Link to this post

    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).
Back to Top