YOUSEFUL / DELPHI / COMPONENTS
TAtlasChartKind
The chart type of a TAtlasChart: line, bar or pie.
Description
Value of TAtlasChart.Kind. Changing the kind keeps the series and points.
Members
| Member | Kind | What it does |
|---|---|---|
acLine | value | Default. |
acBar | value | Bars from the zero line, with the series side by side at each X. |
acPie | value | Slices of the only series, clockwise from twelve o'clock, coloured from a fixed eight-colour palette; zero and missing points are left out. |
Values
acLine value
TAtlasChartKind = (acLine, acBar, acPie);Default. Each series is a line through its points in the order they were added, with a small round marker at every point.
acBar value
TAtlasChartKind = (acLine, acBar, acPie);Bars from the zero line, with the series side by side at each X. The X axis shows the captions of the first series when all its points have one.
acPie value
TAtlasChartKind = (acLine, acBar, acPie);Slices of the only series, clockwise from twelve o'clock, coloured from a fixed eight-colour palette; zero and missing points are left out. Allowed only with at most one series and no negative values.
Examples
Toggle between lines and bars
A command handler for a view switch.
uses Atlas.Charts;
procedure ToggleBars(Chart: TAtlasChart);
begin
if Chart.Kind = acLine then Chart.Kind := acBar else Chart.Kind := acLine;
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