Bug Chart Width / Height

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ChrisIropa
Newbie
Newbie
Posts: 4
Joined: Wed May 23, 2007 12:00 am

Bug Chart Width / Height

Post by ChrisIropa » Thu Jun 28, 2007 2:32 pm

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

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Fri Jun 29, 2007 10:00 am

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;
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

ChrisIropa
Newbie
Newbie
Posts: 4
Joined: Wed May 23, 2007 12:00 am

Post by ChrisIropa » Mon Jul 02, 2007 7:04 am

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

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Mon Jul 02, 2007 8:16 am

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.
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

Post Reply