Page 1 of 1

Different zoom behaviour in TeeChart V7 and V8

Posted: Mon Jul 27, 2009 2:01 pm
by 10548322
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

Re: Different zoom behaviour in TeeChart V7 and V8

Posted: Mon Jul 27, 2009 2:34 pm
by narcis
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.

Re: Different zoom behaviour in TeeChart V7 and V8

Posted: Tue Jul 28, 2009 8:52 am
by 10548322
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

Re: Different zoom behaviour in TeeChart V7 and V8

Posted: Tue Jul 28, 2009 10:48 am
by yeray
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;

Re: Different zoom behaviour in TeeChart V7 and V8

Posted: Tue Jul 28, 2009 11:52 am
by 10548322
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

Re: Different zoom behaviour in TeeChart V7 and V8

Posted: Tue Jul 28, 2009 1:58 pm
by yeray
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.