HotXLS Docs

TXLSChartModel class

Unit: lxChart
Strongly typed Classic XLS chart model exposing chart type, 3-D state, titles, series, axes, and legend data

Description

TXLSCustomChart.GetChartModel returns this typed view of a Classic XLS chart stream, including the chart family, 3-D state, chart and axis titles, legend, axes, series names, and series source formulas

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