Page 1 of 1

TBarSeries

Posted: Thu Jul 22, 2004 4:56 am
by 8578785
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

Posted: Thu Jul 22, 2004 5:22 pm
by Pep
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;