YOUSEFUL / DELPHI / COMPONENTS
TAtlasChartPoint
A chart point as stored by a series: coordinates, a missing flag and an optional caption.
Description
The record returned by TAtlasChartSeries.Points. Create points with Add and AddMissing; a returned record is a copy, and changing it does not change the chart.
Members
| Member | Kind | What it does |
|---|---|---|
X | field | Horizontal position. |
Y | field | Value. |
Missing | field | True for a point added with AddMissing. |
Caption | field | Category label given to Add; empty for a missing point. |
Fields
X field
X, Y: Double;Horizontal position. For a bar chart with captions it is still the position of the bar.
Y field
X, Y: Double;Value. Always 0 for a missing point.
Missing field
Missing: Boolean;True for a point added with AddMissing.
Caption field
Caption: string;Category label given to Add; empty for a missing point.
Examples
Describe a point
Formats a point for a log or a status line.
uses System.SysUtils, Atlas.Charts;
function DescribePoint(const Point: TAtlasChartPoint): string;
begin
if Point.Missing then
Result := Format('x=%g: no value', [Point.X])
else
Result := Format('x=%g y=%g %s', [Point.X, Point.Y, Point.Caption]);
end;
Related
Also in Atlas VCL
TAtlasTable · TAtlasGrid · TAtlasValueEdit · TAtlasTree · TAtlasWorkbook · TAtlasSheetGrid · TAtlasPivot · TAtlasInspector · TAtlasRichEdit · TAtlasSpellChecker · TAtlasChart · TAtlasGauge · TAtlasThemer · TAtlasWizard · TAtlasWorkspace · TAtlasCommandBar · TAtlasActionTile · TAtlasTileBoard · TAtlasNavigation · TAtlasMap · TAtlasGraph · TAtlasDiagram · TAtlasPrintDocument · TAtlasSchedule · TAtlasScheduler · TAtlasTaskPlan · TAtlasGantt · TAtlasPdfDocument · TAtlasPdfViewer