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

Chart Resizing

6 Answers 322 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Rav
Top achievements
Rank 2
Rav asked on 10 Aug 2013, 10:01 AM
Can someone please help, we want to resize our KendoUI stock chart based on window resize (i.e. make it responsive). How can we redraw the stock chart when user changes to mobile device or resizes their browser window?

6 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 12 Aug 2013, 12:51 PM
Hi Rav,

In order to achieve the expected result you could use Chart refresh() method. For example:

$(window).resize(function(){
    $("#stock-chart").data("kendoStockChart").refresh();
});

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Andrey
Top achievements
Rank 1
answered on 22 Nov 2013, 10:44 AM
Hi Iliana.
This code example is not compatible with stock chart.
And kendo.resize() from latest release also not compatible. How we can make stock chart responsive?

0
Rav
Top achievements
Rank 2
answered on 26 Nov 2013, 07:21 AM

$(window).resize(function(){
    $("#stock-chart").data("kendoStockChart").refresh();
});
is not helping to resize stock chart. Also method that introduced in this article http://www.kendoui.com/blogs/teamblog/posts/13-11-20/new-in-kendo-ui-q3-201… is not working.


$(window).on("resize", function() {
        kendo.resize($("#stock-chart"));
});

You can find example here:
https://dl.dropboxusercontent.com/u/204009/kendoStockChartResize.zip
0
T. Tsonev
Telerik team
answered on 26 Nov 2013, 03:35 PM
Hello,

An issue in the stock chart was preventing the resize method from working. This is now fixed and should be fully functional in the next internal build (v. 2013.3.1126 and later).
It should be available for download within a day or two.

Apologies for the caused inconvenience.

Regards,
T. Tsonev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Rav
Top achievements
Rank 2
answered on 03 Dec 2013, 12:44 PM
This version better, but still not working fine. Now resize of navigator broken. You can see it on video: http://screencast.com/t/pQHsSkAc
0
Iliana Dyankova
Telerik team
answered on 05 Dec 2013, 09:34 AM
Hi Rav,

Thank you for pointed our attention to this issue - I forwarded it to the developers for further investigation and we will do our best to address it as soon as possible. Please excuse us for the inconvenience caused. 

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Rav
Top achievements
Rank 2
Answers by
Iliana Dyankova
Telerik team
Andrey
Top achievements
Rank 1
Rav
Top achievements
Rank 2
T. Tsonev
Telerik team
Share this question
or