THPDFPage.DrawChart

Renders line, bar, area, pie, or scatter data as native PDF vectors and text inside a caller-supplied rectangle

Declaration

procedure DrawChart(Chart: THPDFChart;
  X, Y, Width, Height: Single); overload;

procedure DrawChart(Chart: THPDFChart;
  X, Y, Width, Height: Single;
  const Options: THPDFChartRenderOptions;
  out Statistics: THPDFChartRenderStatistics); overload;

procedure DrawChart(Chart: THPDFChart;
  X, Y, Width, Height: Single;
  const Options: THPDFChartRenderOptions;
  out Statistics: THPDFChartRenderStatistics;
  StructureParent: THPDFDictionaryObject); overload;

Parameters

NameDescription
ChartOwned-by-caller chart model to validate and render
X, YTop-left chart position in the page coordinate system
Width, HeightChart rectangle, which must be at least 120 by 100 points
OptionsSeries, point, label, accessibility, title, axis, and grid limits or switches
StatisticsReceives rendered object counts, path work, tagging state, and label truncation
StructureParentOptional current-page structure parent used to create a tagged Figure with alternate text

Return value

This procedure does not return a value; the extended overloads report their result through Statistics

Usage notes

Related APIs