YOUSEFUL / DELPHI / COMPONENTS
TAtlasPlotKind
How a TAtlasPlotSeries is drawn: line, step, area, bar, point or pie.
Description
Value of TAtlasPlotSeries.Kind and the Kind argument of TAtlasPlot.AddSeries. In CSV the kinds are written without the prefix, in lower case (line, step, ...). Kinds can be mixed freely in one cartesian chart; a pie is only drawn when it is the first visible series, and then alone.
Members
| Member | Kind | What it does |
|---|---|---|
pkLine | value | Straight segments joining the points in the order they were added. |
pkStep | value | Each value holds until the next point's argument, where the line jumps vertically to the next value. |
pkArea | value | A line with the region down to zero (or to the series below when stacked, or the bottom of a logarithmic axis) filled in the series colour mixed with the background. |
pkBar | value | A bar from zero (or the stack below) to each value. |
pkPoint | value | A dot at each point, no line. |
pkPie | value | One slice per positive value, starting at twelve o'clock and running clockwise, coloured from the palette by point index or by the point's Color. |
Values
pkLine value
pkLineStraight segments joining the points in the order they were added. Gaps break the line. The default.
pkStep value
pkStepEach value holds until the next point's argument, where the line jumps vertically to the next value.
pkArea value
pkAreaA line with the region down to zero (or to the series below when stacked, or the bottom of a logarithmic axis) filled in the series colour mixed with the background.
pkBar value
pkBarA bar from zero (or the stack below) to each value. Bars of several series at one argument are grouped side by side unless Stacking is set; the group takes 70 % of the closest spacing between bar arguments.
pkPoint value
pkPointA dot at each point, no line. The dot radius grows with LineWidth.
pkPie value
pkPieOne slice per positive value, starting at twelve o'clock and running clockwise, coloured from the palette by point index or by the point's Color. Negative values are rejected; zero values and gaps draw no slice.
Examples
Mix kinds in one chart
Bars with a line and a point series on the same axes.
uses
Atlas.Plot, Atlas.PlotSeries;
procedure MixKinds(Plot: TAtlasPlot);
var
Volume, Price, Alerts: TAtlasPlotSeries;
Day: Integer;
begin
Volume := Plot.AddSeries('Volume', pkBar);
Price := Plot.AddSeries('Price', pkLine);
Alerts := Plot.AddSeries('Alerts', pkPoint);
for Day := 1 to 10 do
begin
Volume.Add(Day, 20 + Day mod 4 * 5);
Price.Add(Day, 30 + Day);
end;
Alerts.Add(4, 34);
Alerts.Add(9, 39);
end;