TXLSXChartPlotGroup.VaryColors property

Unit: lxHandleX
The VaryColors property of TXLSXChartPlotGroup.

Syntax

property VaryColors: Boolean read FVaryColors write SetVaryColors

Description

Controls whether the plot group varies colours by point, a setting the chart part stores as c:varyColors. Assigning the property writes that element outright and records that an explicit value was supplied, so a later save preserves it. If the property is left unset, the writer keeps the per-chart-type default it has always emitted: one for pie-like plots, zero for anything else.

Remarks

When HotXLS saves and reopens surface and 3D surface plot groups, an explicitly assigned or imported c:varyColors value is retained; a group left unset keeps the writer’s zero default. What this guarantees is storage of the setting, not native appearance: Microsoft documents that Office ignores this setting for surface plots
VaryColorsSet reports whether an explicit value is present, which separates an assigned False from an unset default. That distinction matters when an imported chart is rewritten, since otherwise a source file that varies its point colours, or a pie that does not, would fall back to the per-chart-type default.

See also