Page 1 of 1

Bug Chart Width / Height

Posted: Thu Jun 28, 2007 2:32 pm
by 13045135
Hi !

I' ve set my Chart width and Height to 100%. In aspx and via properties in Visual Studio 2005.

But my Chart width and height is always 100px. Is it possible that the percents are interpreted as pixels.

How can I set my Chart width to real 100%

Regards,

Chris

Posted: Fri Jun 29, 2007 10:00 am
by 9348258
Hi Chris

Steema recommends to dimension the chart in pixels, because the server needs to know the size of the chart at the moment of generation. If charts are stretched to a different percentage pagesize the visual effect on the Chart itself will be adverse. If you need a dinamic size, you could set the width/height at page_load time, for example via pageset parameters.
Eg.

Code: Select all

        int chartWidth=Convert.ToInt32(this.Request.Params["dynaWidth"]);
        WebChart1.Width = chartWidth;

Posted: Mon Jul 02, 2007 7:04 am
by 13045135
Hi Edu !

This idea I have had too and it works. But there are two problems if you want to set width and height to 100% of clientsize.

1. I have to load the page two times at start because I don't know the clientsize at first Page_Load.

2. If the user resize the client window I need the new width and height.

Regards,

Chris

Posted: Mon Jul 02, 2007 8:16 am
by 9348258
Hi Chris!

Thanks for the comments. We'll feed this back into the development loop to see if anything can be added to a future update to offer more options.