YOUSEFUL / DELPHI / COMPONENTS

TAtlasChartKind

The chart type of a TAtlasChart: line, bar or pie.

Enumeration Unit Atlas.Charts · Product Atlas VCL

Description

Value of TAtlasChart.Kind. Changing the kind keeps the series and points.

Members

MemberKindWhat it does
acLinevalueDefault.
acBarvalueBars from the zero line, with the series side by side at each X.
acPievalueSlices 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.

pascal
uses Atlas.Charts;

procedure ToggleBars(Chart: TAtlasChart);
begin
  if Chart.Kind = acLine then Chart.Kind := acBar else Chart.Kind := acLine;
end;

TAtlasChart

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