HotXLS Docs

TXLSXChartPlotGroup.VaryColors property

Unit: lxHandleX
The VaryColors property of TXLSXChartPlotGroup.

Syntax

property VaryColors: Boolean read FVaryColors write SetVaryColors

Description

Controls the plot group's vary-colours-by-point setting, which the chart part stores as c:varyColors. Assigning the property writes the element explicitly and records that an explicit value was set, so a later save keeps it. Leaving the property unset keeps the per-chart-type default the writer has always emitted: one for pie-like plots and zero otherwise.

Remarks

Surface and 3D surface plot groups retain an explicitly assigned or imported c:varyColors value when saved and reopened by HotXLS; an unset group keeps the writer's zero default. This guarantees storage of the setting, not a native appearance: Microsoft documents that Office ignores this setting for surface plots
VaryColorsSet reports whether an explicit value is present, distinguishing an assigned False from an unset default. The distinction matters when rewriting an imported chart, because a source file that varies its point colours or a pie that does not would otherwise fall back to the per-chart-type default.

See also