TBarSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
kmanuele
Newbie
Newbie
Posts: 13
Joined: Mon Feb 09, 2004 5:00 am

TBarSeries

Post by kmanuele » Thu Jul 22, 2004 4:56 am

This is related to previous post.

If I create a TBarSeries with vertical and horizontal custom axes, the bar is shown as a single line, with no width or fill color.

If I then use the chart editor at runtime to change the horizontal axis to a standard axis, the bar changes to expected width and fill color.

If I then change the axis back to the custom axis, the bar stays at the correct width and color even as data is updated in the chart.

So, how do I get the bar to display correctly with both axes custom?

Thanks

Kevin

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

Post by Pep » Thu Jul 22, 2004 5:22 pm

Hi Kevin,

using the code below works fine here :

Code: Select all

with Chart1 do
begin
  View3D := false;
  Series1.Add(10);
  CustomAxes.Items[0].SetMinMax(-4,4);
  CustomAxes.Items[1].SetMinMax(0,50);
  Series1.CustomHorizAxis := Chart1.CustomAxes.Items[0];
  Series1.CustomVertAxis := Chart1.CustomAxes.Items[1];
end;

Post Reply