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.
column keeps it's width on zoom
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: column keeps it's width on zoom
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.
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 |
Instructions - How to post in this forum |
Re: column keeps it's width on zoom
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.
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 199 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: column keeps it's width on zoom
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.
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 |
Instructions - How to post in this forum |
Re: column keeps it's width on zoom
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: column keeps it's width on zoom
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.
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 |
Instructions - How to post in this forum |