Page 1 of 1
column keeps it's width on zoom
Posted: Wed Sep 09, 2009 2:17 pm
by 9644659
Hello,
I have a strange problem, regarding zoom.
Context:
Bar chart, stacked. TeeChart v 2.0.2987. Happens also with the latest v.3 trial.
Problem:
The fact is that the right most column ( x is growing ---> ) keeps it's width when I zoom in (either with the mouse and also manual, from code). Note that the height is changed OK.
If, in the Zoomed event, I manually modify the CustomWidth property of the corresponding Bar Item , the width is changed. But I don't know the right value here to "hack" the last column to zoom OK (the other Bar items seem to return the normal 100% view width).
I appreciate any idea.
Best regards,
Andrei.
- normal.png (3.37 KiB) Viewed 2953 times
- zoomed.png (7.52 KiB) Viewed 2953 times
Re: column keeps it's width on zoom
Posted: Wed Sep 09, 2009 3:08 pm
by narcis
Hi Andrei,
I'm not able to reproduce the problem here either using latest releases of v3 and v2009 (v4). Can you please check if TeeChart for .NET 2009's evaluation version, available at
http://www.teechart.net/support/viewtop ... f=7&t=9207, solves the problem for you? If it doesn't can you please attach a simple example project we can run "as-is" to reproduce the problem here?
Thanks in advance.
Re: column keeps it's width on zoom
Posted: Thu Sep 10, 2009 12:44 pm
by 9644659
Hello,
Bellow there's an example project, that includes also a "hack" solution.
You can activate/deactivate the hack via a checkbox.
Teechart versions used : 2.0.2987 ; 3.5.3371
Context:
BarWidthPercent = 100; This makes the bars to occupy the entire space between them.
Steps to recreate:
Without hack:
- zoom on the right most side
- the last column has different width
With hack:
- zoom on the right most side
- now the last column has the right width
- there's a residual space left because the hack introduces an invisible column to "take the hit".
Best Regards,
Andrei.
Re: column keeps it's width on zoom
Posted: Thu Sep 10, 2009 2:08 pm
by narcis
Hello Andrei,
Thanks for the example project. I'm not able to reproduce the problem here using it with latest TeeChart for .NET v3 release available at the client area. Can you please check if it solves the problem at your end?
If the problem persists could you please explain how should I exactly zoom the chart to reproduce it? You may want to use
CamStudio (or another similar application) for recording a video demonstrating it, posting some screen shots or doing it programmatically setting axis scales manually with SetMinMax method.
Thanks in advance.
Re: column keeps it's width on zoom
Posted: Thu Sep 10, 2009 2:20 pm
by 9644659
Hello,
Thanks for your reply.
Here's the movie:
http://dl.transfer.ro/show-9d22f001d.zip
I'm sorry it's without sound, but I don't have a mic at hand for the moment.
You should be able to see that the width of the right most column remains the same on zoom, and with the "hack" active
the invisible column introduced takes the "hit" and the real right most column zooms OK.
Have a nice day,
Andrei
Re: column keeps it's width on zoom
Posted: Thu Sep 10, 2009 2:28 pm
by narcis
Hello Andrei,
Thanks for the video but I'm still unable to reproduce the problem here. Can you please check if
latest TeeChart for .NET v3 release solves the problem for you?
Thanks in advance.