HotXLS Docs

TXLSChartModel class

Unit: lxChart
Strongly typed classic XLS chart model (type, series, axes, legend, area items) authored before serialization

Description

TXLSCustomChart.GetChartModel Strongly typed classic XLS chart model (type, series, axes, legend, area items) authored before serialization. This object is reached through the owning pivot table, shape collection, worksheet or page setup and is not normally created directly by application code.

Fields

ChartType: TXLSChartTypeFamily — decoded chart family (cfBar, cfLine, cfPie, cfArea, cfScatter, cfRadar, cfDoughnut, cfSurface, cfBubble, or cfUnknown)
Is3D: Boolean — True when the chart stream carries a 3-D scene
Scene3D: TXLSChart3DState — decoded Chart3d state object with Rot, Elev, Dist, Height, Depth, Gap, Perspective, Cluster, Autoscale, Scaling3D, and Walls2D; nil for a 2-D chart
IsPivotChart: Boolean — True when the chart globals carry a PivotChart link
PivotSourceName: WideString — source PivotTable view name carried by SXViewLink
PivotHideCaptions: Boolean — the PivotChart hide-caption flag carried by PivotChartBits
Title: WideString — chart title text
CategoryAxisTitle: WideString — primary category-axis title
ValueAxisTitle: WideString — primary value-axis title

Properties

Legend — the TXLSChartLegend descriptor owned by this model
AxisGroupCount — number of axis groups declared by AXESUSED; 1 means primary only

Methods

AddSeries — appends a new TXLSChartSeries
AddAxis — appends a new TXLSChartAxis
SeriesCount — number of series entries
GetSeries(Index) — zero-based access to one series
AxisCount — number of axis entries
GetAxis(Index) — zero-based access to one axis

See also