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

Apparance

3 Answers 32 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 12 Sep 2013, 07:52 AM
Dear telerik-Team

first off all you make a brilliant job!

I use the HtmlChart and try to format the chart using percent for height and width. After render the chart it is shown in the right dimensions but if I resize the browser window (smaller/bigger) the chart doesn't scale with the browser window size. 

Isn't possible or something wrong?

Kind regards,
Chrisitan

3 Answers, 1 is accepted

Sort by
0
Christian
Top achievements
Rank 1
answered on 15 Sep 2013, 07:36 PM

I found a suitable solution by repaint the chart if the browser window is resized.

$(window).resize
(
    function()
    {
        var chart = $find('<%= this.Chart.ClientID %>');
        chart.repaint();
    }
);
0
Accepted
Stamo Gochev
Telerik team
answered on 16 Sep 2013, 06:14 AM
Hi,

I am glad that you have managed to deal with the case. The following forum thread might be very helpful to you as it gives additional information on setting RadHtmlChart's dimensions in percentages and scaling  the chart on window's resizing.

Regards,
Stamo Gochev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Christian
Top achievements
Rank 1
answered on 16 Sep 2013, 08:29 AM
Hi again,

Thanks for additional link! I will review it.

Kind regards,
Christian
Tags
Chart (HTML5)
Asked by
Christian
Top achievements
Rank 1
Answers by
Christian
Top achievements
Rank 1
Stamo Gochev
Telerik team
Share this question
or