TeeChartの使い方 軸設定 (TeeChart Pro 8.06)
With Chart1 do
begin
//Y軸
LeftAxis.Title.Font.Size := 11;
LeftAxis.Title.Caption := ‘Y-axis’;
LeftAxis.LabelsFont.Size := 11;
LeftAxis.AxisValuesFormat := ‘0.0##’;
LeftAxis.Minimum := 0;
LeftAxis.AutomaticMaximum := True;
LeftAxis.AutomaticMinimum := False;
//LeftAxis.Automatic := True;
LeftAxis.Ticks.Visible := True;//目盛表示
LeftAxis.TickLength := 5;//目盛の長さ
LeftAxis.TicksInner.Visible := True;//内側目盛表示
LeftAxis.TickInnerLength := 2;//内側目盛の長さ
LeftAxis.MinorTicks.Visible := True;//副目盛表示
LeftAxis.MinorTickLength := 3;//副目盛の長さ
LeftAxis.Grid.Visible := True;//グリッド表示
//目盛増加量(グリッド間隔) 小さすぎる場合は勝手に大きくなる
LeftAxis.Increment := 0.5;
//グリッド間隔が勝手に大きくなるのをなるべく防ぐには次のようにする
LeftAxis.LabelsSeparation := 0;
//第2Y軸
RightAxis.Title.Font.Size := 11;
RightAxis.Title.Caption := ‘2nd Y-axis’;
RightAxis.LabelsFont.Size := 11;
RightAxis.AxisValuesFormat := ‘0.0##’;
RightAxis.Minimum := 0;
RightAxis.Automatic := True;
RightAxis.Grid.Visible := False;
//X軸
BottomAxis.Title.Font.Size := 11;
BottomAxis.Title.Caption := ‘X-axis’;
BottomAxis.LabelsFont.Size := 11;
BottomAxis.AxisValuesFormat := ‘0’;
BottomAxis.Automatic := True;
BottomAxis.Grid.Visible := True;
end;

