YOUSEFUL / DELPHI / COMPONENTS
TAtlasPlotMarks
Which label a TAtlasPlotSeries draws next to each point.
Description
Value of TAtlasPlotSeries.Marks. Marks sit above positive points and below negative ones (to the right or left when Rotated), at the end of each bar, and outside each pie slice. Marks of points outside the plot area are not drawn.
Members
| Member | Kind | What it does |
|---|---|---|
pmNone | value | No marks. |
pmValue | value | The point's value, formatted 0.##. |
pmText | value | The point's Text, or its value when the text is empty. |
pmPercent | value | The point's share, formatted 0.#%: of the positive slices' total for a pie, of the sum of absolute values of the series otherwise. |
Values
pmNone value
pmNoneNo marks. The default.
pmValue value
pmValueThe point's value, formatted 0.##.
pmText value
pmTextThe point's Text, or its value when the text is empty.
pmPercent value
pmPercentThe point's share, formatted 0.#%: of the positive slices' total for a pie, of the sum of absolute values of the series otherwise.
Examples
Donut with percentages
A donut whose slices are labelled with their share.
uses
Atlas.Plot, Atlas.PlotSeries;
procedure TicketDonut(Plot: TAtlasPlot);
var
Tickets: TAtlasPlotSeries;
begin
Plot.DonutPercent := 45;
Tickets := Plot.AddSeries('Tickets', pkPie);
Tickets.Marks := pmPercent;
Tickets.AddY(412, 'Email');
Tickets.AddY(268, 'Chat');
Tickets.AddY(131, 'Phone');
end;