Axis Labels Behind Shape Series?
Posted: Wed Jun 01, 2022 8:55 pm
Is there a way to have the labels of an axis show up centered behind (or in front) of the data?
Thanks,
John
Thanks,
John
Steema Software - Customer Support Forums
http://216.92.243.79/support/
PositionPercent
, PositionUnits
and the Chart's AxisBehind
properties.Code: Select all
uses TeeShape;
procedure TForm1.FormCreate(Sender: TObject);
begin
with Chart1 do
begin
View3D:=False;
Legend.Hide;
Gradient.Visible:=False;
Color:=clWhite;
Walls.Back.Gradient.Visible:=False;
Walls.Back.Color:=clWhite;
with Chart1.AddSeries(TChartShape) do
begin
FillSampleValues;
Color:=OperaPalette[0];
end;
Chart1.AxisBehind:=False;
Chart1.Axes.Bottom.PositionUnits:=muPercent; //muPixels,muPixels;
Chart1.Axes.Left.PositionUnits:=muPercent; //muPixels,muPixels;
Chart1.Axes.Bottom.PositionPercent:=50;
Chart1.Axes.Left.PositionPercent:=50;
Chart1.Axes.Bottom.Grid.Hide;
Chart1.Axes.Left.Grid.Hide;
end;
end;