CustomBarHeight behavior change into Version 7.07

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

CustomBarHeight behavior change into Version 7.07

Post by SteveP » Fri May 05, 2006 7:22 pm

In vesion 7.06 I was able to vary the height of a Horizontal Bar series bars from 1 to some larger value in one pixel increments by setting the value of CustomBarHeight to one less than my desired number of pixels. For example, CustomBarHeight=0 makes 1 pixel tall bars, CustomBarHeight=1 makes them 2 pixels.

Now in 7.07, the pixel height is one less than the CustomBarHeight and worse, setting CustomBarHeight=1 results in nothing being plotted. Is this change intended or as a result of a change in some other behavior ?

series1.FillSampleValues(20);

// set BarWidthPercent := 0; so that 1 pixel can be shown by using CustomBarHeight := 0 in Version 7.06
series1.BarWidthPercent := 0;

series1.ColorEachPoint := true;

{ hide border since border can only be set to one color
and thus cannot be made to match each series's ColorEachPoint.
Otherwise the single-colored border would appear around each different colored series value }
series1.BarPen.Visible := true;

series1.CustomBarHeight := spinedit1.Value;

Pep
Site Admin
Site Admin
Posts: 3213
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed May 17, 2006 9:05 am

Hi Steve,
plotted. Is this change intended or as a result of a change in some other behavior ?
Yes, in the latest v7.07 we've fixed some problems related with the BarWidthPercent which could make change this. Now using the BarWidthPercent:=0; will be the best option for you.

Post Reply