TAxisItems.Add
TAxisItems
function Add(Const Value: TAxisValue; Const Text: String): TAxisItem;
Unit
TeEngine
Description
Adds a new custom axis label to list.
Returns axis item object representing the new label.
with Chart1.Axes.Left do
begin
Items.Clear; // remove all custom labels
// add custom labels
Items.Add(123,'Hello').Font.Size:=16;
Items.Add(466,'Good'#13'Bye').Transparent:=False;
Items.Add(300);
with Items.Add(-100) do
begin
Transparent:=False;
Transparency:=50;
Color:=clBlue;
end;
end;