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
Bug Chart Width / Height
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.
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;
-
- Newbie
- Posts: 4
- Joined: Wed May 23, 2007 12:00 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
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