Files
gridcraft/crates/model
neilcawseandClaude Opus 5.5 374ab0f127 XLSX: PivotCharts plot their cached points; deleted automatic titles stay off
Excel often saves a PivotChart series with formulas that only approximate
its PivotTable: every formula pointing at the table corner cell, or a block
that takes in the grand total row. Excel draws the chart from the
PivotTable, so the cached points are what it shows; GridCraft evaluated the
formulas and drew empty charts or a stray grand total bar. When a PivotChart
series references don't cover their cached points (numCache, strCache or the
innermost multiLvlStrCache level), the series now plots the cached points
and cached name as array constants. Refreshing the PivotTable rebinds the
chart to live cells as before.

A chart with <c:autoTitleDeleted val="1"/> and no title now opens with its
automatic title off, instead of showing the lone series name ("Series1").

Array-constant series also survive a save: literals are read by index and
ptCount (gaps stay #N/A instead of shifting later points), and written by
parsing the array constant, so text with quotes, commas or semicolons is
kept.

Literal values keep their number format: Series gains number_format, read
from the numLit or numCache formatCode and written as the numLit
formatCode (it was always General). The renderer uses it only for array
constants; references keep using their cells' format. Cached PivotChart
points now label as "$185" or "5.36%", as in Excel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 14:14:53 -04:00
..