Also, my left axis is logarithmic, and my area y values are simply log values (10, 100, 1000), but you can see that the red color doesn't quite start at the 100 grid line. How can I fix that?

Thanks
Code: Select all
uses Series, TeeTools;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
Chart1.Legend.Visible:=false;
Chart1.Axes.Left.Logarithmic:=true;
Chart1.Axes.Left.SetMinMax(1,1000);
Chart1.AddSeries(TFastLineSeries).FillSampleValues();
with Chart1.Tools.Add(TColorBandTool) as TColorBandTool do
begin
Axis:=Chart1.Axes.Left;
Transparency:=50;
Color:=clLime;
Pen.Visible:=false;
StartValue:=1;
EndValue:=10;
end;
with Chart1.Tools.Add(TColorBandTool) as TColorBandTool do
begin
Axis:=Chart1.Axes.Left;
Transparency:=50;
Color:=clred;
Pen.Visible:=false;
StartValue:=100;
EndValue:=1000;
end;
end;
Have you set the first are to have value 10 and the second one to have value 100. If that's the case, the problem is probably, being stacked areas, the first one goes to 10 and the second one to 110. So you could try setting the second series to have a value 90.Also, my left axis is logarithmic, and my area y values are simply log values (10, 100, 1000), but you can see that the red color doesn't quite start at the 100 grid line. How can I fix that?
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |