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

Display issues with Q1'12 Beta and JSON data source

2 Answers 78 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Günter
Top achievements
Rank 1
Günter asked on 14 Mar 2012, 11:34 PM
I've recently updated our application to use the Q1'12 Beta release, and this release introduced a chart display issue when loading data from a data source (JSON in our case). Previously, when loading JSON data, no chart would be drawn until the JSON data finished loading and the chart could be drawn with correct axes and labels. Also, the "loading" animated GIF placed in the chart container DIV was shown correctly until the chart was ready. In Q1'12, the chart grid is drawn before the JSON data has been fully downloaded. This results in a very unpretty display issue, because the chart's grid is first drawn with incorrect labels and incorrect axes, and only later being replaced with the correct chart. It would be great to have that old behavior again, to draw nothing until all data is available and the correct chart can be drawn.

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 15 Mar 2012, 11:46 AM
Hello,

We don't quite have an elegant solution for this problem, but it can be worked around. For example:
<div id="chart" style="visibility: hidden;"></div>

$("#chart").kendoChart({
    // ...
    dataBound: function() {
        $("#chart").css("visibility", "visible");
    }
});


We'll consider adding an "empty chart" template for future versions.

Kind regards,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Günter
Top achievements
Rank 1
answered on 15 Mar 2012, 08:16 PM
Thanks, that did the trick.
Tags
Charts
Asked by
Günter
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Günter
Top achievements
Rank 1
Share this question
or