Kendo UI chart not resizing?

后端 未结 6 1779
温柔的废话
温柔的废话 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:24

    This is what I using for my charts:

    if($("#areaChart").data("kendoChart")) {
        $("#areaChart svg").width(Number($('.k-content').width()));
        $("#areaChart svg").height(Number($('.k-content').height()));
    
        $("#areaChart").data("kendoChart").refresh();
    }
    

    Taken from here

    Have you checked the resize() Method?

提交回复
热议问题