Is there any way in which I can get the axis labels inside the chart rectangle? For example, for the left axis, I like to draw the labels to the right of the axis.
The reason for this is that I wish to develop some graphic components into which I wish to copy the chart rectangle from on off-screen chart.
Thanks in advance for any tips that may help to achive this.
Axis labels inside chart rectangle
-
- Newbie
- Posts: 12
- Joined: Thu Dec 28, 2017 12:00 am
Re: Axis labels inside chart rectangle
Hello,
Assigning the series to use right axis and setting a PostionPercent of 100 does the trick.
Here a simple example with a few more tweaks to make it look ok.
Assigning the series to use right axis and setting a PostionPercent of 100 does the trick.
Here a simple example with a few more tweaks to make it look ok.
Code: Select all
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=False;
Chart1.Legend.Hide;
with Chart1.AddSeries(TBarSeries) do
begin
ColorEachPoint:=True;
FillSampleValues;
VertAxis:=aRightAxis;
end;
Chart1.Axes.Right.PositionPercent:=100;
Chart1.Axes.Right.LabelsOnAxis:=False;
Chart1.Axes.Bottom.MinimumOffset:=20;
Chart1.Axes.Right.Grid.Hide;
Chart1.Axes.Bottom.Grid.Hide;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 12
- Joined: Thu Dec 28, 2017 12:00 am
Re: Axis labels inside chart rectangle
Works "like a treat"!! Thanks.