Kendo UI chart not resizing?

后端 未结 6 1836
温柔的废话
温柔的废话 2021-01-17 23:55

\"enter

I have a Kendo ui chart which displays a column chart from a dynamic data sour

6条回答
  •  遇见更好的自我
    2021-01-18 00:27

    This happens generally when you open a chart in a animated window before it is finished expanding.

    My suggestion is to redraw the chart when you are sure everything is loaded and fully opened.

    $("#myChart").data("kendoChart").redraw();
    

    If you have not disabled animations you may want to do that before this and re-enable them after.

    $("#myChart").data("kendoChart").options.transitions = false;
    

提交回复
热议问题