multiple Horizontal Bar series problem
Posted: Tue Aug 30, 2005 5:56 pm
When several Horizontal Bar series are shown as MultiBar:= mbNone, their bars do not appear at their Y values location unless the two series start at the same Y axis value and have the same Y axis increment.
In the following code, with offset > 0 and multiplier := 1, the minimum bar (red) is too wide and the others appear at the wrong Y axis location .
If offset=0 and multiplier > 1, then series2 values seem to appear at their correct Y axis location but series1 does not.
offset := 0;
multiplier := 1;
with series1 do
begin
Clear;
ColorEachPoint := true;
BarWidthPercent := 100;
UseYOrigin := true;
MultiBar:= mbNone;
YOrigin := 1;
for i := 1 to 4 do
begin
AddXY(YOrigin + 1, i);
end;
end;
with series2 do
begin
Clear;
ColorEachPoint := true;
BarWidthPercent := 100;
UseYOrigin := true;
MultiBar:= mbNone;
YOrigin := 2;
for i := 1 to 6 do
begin
AddXY(YOrigin + 1, ( i * multiplier ) + offset);
end;
end;
In the following code, with offset > 0 and multiplier := 1, the minimum bar (red) is too wide and the others appear at the wrong Y axis location .
If offset=0 and multiplier > 1, then series2 values seem to appear at their correct Y axis location but series1 does not.
offset := 0;
multiplier := 1;
with series1 do
begin
Clear;
ColorEachPoint := true;
BarWidthPercent := 100;
UseYOrigin := true;
MultiBar:= mbNone;
YOrigin := 1;
for i := 1 to 4 do
begin
AddXY(YOrigin + 1, i);
end;
end;
with series2 do
begin
Clear;
ColorEachPoint := true;
BarWidthPercent := 100;
UseYOrigin := true;
MultiBar:= mbNone;
YOrigin := 2;
for i := 1 to 6 do
begin
AddXY(YOrigin + 1, ( i * multiplier ) + offset);
end;
end;