column keeps it's width on zoom

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
andrei
Newbie
Newbie
Posts: 3
Joined: Tue Mar 27, 2007 12:00 am

column keeps it's width on zoom

Post by andrei » Wed Sep 09, 2009 2:17 pm

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
normal.png (3.37 KiB) Viewed 2975 times
zoomed.png
zoomed.png (7.52 KiB) Viewed 2975 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: column keeps it's width on zoom

Post by Narcís » Wed Sep 09, 2009 3:08 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

andrei
Newbie
Newbie
Posts: 3
Joined: Tue Mar 27, 2007 12:00 am

Re: column keeps it's width on zoom

Post by andrei » Thu Sep 10, 2009 12:44 pm

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.
Attachments
TeeChartZoom.zip
Sample Project. No teeChart dll added, please make sure the reference is OK.
(25.86 KiB) Downloaded 200 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: column keeps it's width on zoom

Post by Narcís » Thu Sep 10, 2009 2:08 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

andrei
Newbie
Newbie
Posts: 3
Joined: Tue Mar 27, 2007 12:00 am

Re: column keeps it's width on zoom

Post by andrei » Thu Sep 10, 2009 2:20 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: column keeps it's width on zoom

Post by Narcís » Thu Sep 10, 2009 2:28 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply