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

Methods or events that cause a redraw of a chart

3 Answers 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jacques
Top achievements
Rank 2
Jacques asked on 14 Oct 2013, 07:16 AM
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

3 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 16 Oct 2013, 07:09 AM
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!
0
Jacques
Top achievements
Rank 2
answered on 17 Oct 2013, 06:32 AM
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)
0
Hristo Germanov
Telerik team
answered on 17 Oct 2013, 08:09 AM
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!
Tags
General Discussions
Asked by
Jacques
Top achievements
Rank 2
Answers by
Hristo Germanov
Telerik team
Jacques
Top achievements
Rank 2
Share this question
or