How can I have text next to my axis left and right in TMS FNC Charts within FMX?
I am trying to recreate this chart in TMS FNC Charts:
This is what I have so far:
procedure TfrmGraphTemperature.InitializeChart;
begin
Chart.BeginUpdate;
try
Chart.Series.Clear;
var sMin := Chart.Series.Add;
sMin.LegendText := 'Min (°C)';
sMin.Markers.Visible := True;
var sMax := Chart.Series.Add;
sMax.LegendText := 'Max (°C)';
sMax.Markers.Visible := True;
// Axes setup per-series: integer days on X, °C formatting on Y
sMin.XValues.MajorUnit := 1;
sMin.XValues.MajorUnitFormat := '%.0f';
sMin.YValues.MajorUnitFormat := '%.0f';
sMin.AutoYRange := arCommonZeroBased;
sMin.AutoXRange := arCommon;
sMin.YValues.Positions := [ypLeft];
sMin.XValues.Positions := [xpBottom];
sMax.XValues.MajorUnit := 1;
sMax.XValues.MajorUnitFormat := '%.0f';
sMax.YValues.MajorUnitFormat := '%.0f';
sMax.AutoYRange := arCommonZeroBased;
sMax.AutoXRange := arCommon;
sMax.YValues.Positions := [];
sMax.XValues.Positions := [];
Chart.InteractionOptions.Panning := False;
finally
Chart.EndUpdate;
end;
end;
But I do not know how to add the text next to the axis left and bottom. I have tried so many different commands and none of them are working.
How can I add it??
