Different zoom behaviour in TeeChart V7 and V8

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
maho-muc
Newbie
Newbie
Posts: 3
Joined: Mon Feb 11, 2008 12:00 am

Different zoom behaviour in TeeChart V7 and V8

Post by maho-muc » Mon Jul 27, 2009 2:01 pm

Hello,

when zooming a bar chart in V7, the width of the bars remained constant, only the white space between them grew. Now in V8 the bar chart zooms proportionally, thus the bars become wider when zooming in. My customer does not like that. Is there a way to make V8 act like V7 in that aspect?

Regards,
Matthias

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

Re: Different zoom behaviour in TeeChart V7 and V8

Post by Narcís » Mon Jul 27, 2009 2:34 pm

Hi Matthias,

This works fine for me here using latest v8 release available at the client area which is v8.05. Some issues were fixed on this fixed. Can you please check if v8.05 solves the issue at your end? If you are already using v8.04 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

maho-muc
Newbie
Newbie
Posts: 3
Joined: Mon Feb 11, 2008 12:00 am

Re: Different zoom behaviour in TeeChart V7 and V8

Post by maho-muc » Tue Jul 28, 2009 8:52 am

Hi Narcis,

thanks for pointing me to V8.05, hadn't noticed it before. However, it does not solve the issue. Please have a look into the attached archive. It contains two sample projects, in fact the getting started examples, and 4 screenshots. The Delphi 7 / TeeChart 7.07 and the Delphi 2009 / TeeChart 8.05 version look similar after starting the program, but when I zoom in to display only 2 bars out of the 3, the bars remain constant in width with V7 and become wider with V8. I'd like to get the V7 behaviour with V8, but do not see how.

Matthias
Attachments
TeeChart_ZoomIssue.zip
Screenshots and sample projects
(93.21 KiB) Downloaded 179 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Different zoom behaviour in TeeChart V7 and V8

Post by Yeray » Tue Jul 28, 2009 10:48 am

Hi Matthias,

Try adding the following to your v8 project after adding the values to the series:

Code: Select all

  Chart1.Draw;
  Series1.CustomBarWidth := Series1.BarWidth;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

maho-muc
Newbie
Newbie
Posts: 3
Joined: Mon Feb 11, 2008 12:00 am

Re: Different zoom behaviour in TeeChart V7 and V8

Post by maho-muc » Tue Jul 28, 2009 11:52 am

Hi Yerai,

these two lines do the job - thanks a lot! Just for the record: it's not exactly the old behaviour, because now the bar width remains constant also when changing the window (and thus chart) size, which wasn't the case with V7. But that's only a minor detail and not relevant for my case.

So again - thank your for your fast help!

Matthias

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Different zoom behaviour in TeeChart V7 and V8

Post by Yeray » Tue Jul 28, 2009 1:58 pm

Hi Matthias,

Well, for that you still could change your bar's width at OnResize event to permit your bars to grow with your window.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply