bar series axis offset

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
kmanuele
Newbie
Newbie
Posts: 3
Joined: Fri Jul 24, 2009 12:00 am

bar series axis offset

Post by kmanuele » Wed Jun 23, 2010 6:02 pm

TChart VCL v8.07

A strange and annoying problem:

I have two identical charts, each with 5 TBarSeries. Each series is populated with 3 sets of data, such that there are three groups of 5 bar series on the chart.

BottomAxis->Automatic is set true in both cases.

In the object inspector at design time, the bottom axis min and max offset is set to 60 in both cases. I did not set these manually. If I try to change them, it gets reset back to 60.

At run time: On one chart, the bottom axis min and max offset is set to 160, which is good. On the other chart, it is set to 60, which is not sufficient.

If I look at the dfm file for each, the offsets are not listed for the chart , and are set to 60 in the other. If I delete the offset settings in the dfm file, they become restored to 60 the next time I open it. The other chart dfm file remains as is --- with no offset settings listed.

It seems as if one chart is automatically setting the offsets correctly, but the other is fixed at 60.

Also, if I resize each chart the visible offset is not retained and goes negative as the chart size grows --- obscuring the left and right bars behind the chart boder. This happens at run time and design time.

Help?

thanks

Kevin

kmanuele
Newbie
Newbie
Posts: 3
Joined: Fri Jul 24, 2009 12:00 am

Re: bar series axis offset

Post by kmanuele » Wed Jun 23, 2010 7:49 pm

Fixed.

Outside of the IDE, using a separate text editor, I removed the BottomAxis->MaximumOffset / MinimumOffset lines from the dfm file.

Now both charts function identically: the offsets are automatically set, and remain correct with chart resizing.

It seems that once those lines are in the dfm file they cannot be removed from within the IDE, and they cause problems with the BottomAxis->Automatic functionality for TBarSeries

Kevin

Post Reply