Methods or events that cause a redraw of a chart

4 posts, 0 answers
  1. Jacques
    Jacques avatar
    138 posts
    Member since:
    Jun 2007

    Posted 14 Oct 2013 Link to this post

    Which actions cause a redraw on a chart? 

    chart.dataSource.read()
    chart.refresh() 
    chart.redraw()

    I looked at the documentation and the API section provides no information on this, but it would be nice to know without having to resort to looking at the source code or having to post about it. 
    Is there anywhere else where this would be documented? 

    Thanks,
    Jacques
  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 16 Oct 2013 Link to this post

    Hi J. Hoventer,

    All of these methods are documented. You can examine them here. The dataSource read() should update your chart data because of that the chart is hook up to the dataSource change event.

    Could you please tell me what you need to do and I will try to help?

    Regards,
    Hristo Germanov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Jacques
    Jacques avatar
    138 posts
    Member since:
    Jun 2007

    Posted 17 Oct 2013 Link to this post

    Hristo, 

    You may have noticed in my post that I mentioned the API documentation and that I'd gone through it. The documentation is extremely basic. 

    The problem that we face is that we have scenarios where we want the chart to redraw for visual effect. This could be if a user switches between tabs, the visual effect can be appealing and draw attention where it's needed. However we get to situations where there's a double redraw, so the animation stops midway and then starts to redraw again. 

    Having proper documentation might have allowed us to figure this out, but the API docs, as I mentioned, are quite rudimentary. 

    So main issues: 
    1. Better documentation, better examples, more and more of each
    2. Multiple redraws and not knowing what might be causing it (yes, we call redraw at times, but then it could also be refresh, dataSource.read(), etc. etc)
  4. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 17 Oct 2013 Link to this post

    Hello J.Hoventer,

    1) We are working on the documentation and we will try to improve it.

    2) Could you give me a simple test project that I can examine and advice you further?

    Regards,
    Hristo Germanov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top