docs(xlsx): measure horizontal bar-chart category-count effect on baselines (#1621) - #1764
Merged
Merged
Conversation
…elines (#1621) Extends the #1621 baseline-placement investigation with the category-count probe the prior session (#1763) flagged as the needed next step. - Discovers and documents that a chart-XML-cache-only category-count patch is a complete no-op against native Excel: it re-derives the income chart's categories from xl/workbook.xml's defined-name array literal and its values from a live formula range, both outside the chart part, and overwrites the chart's own cache on open regardless of what it says. - Adds build_category_count_probe.py, which patches both parts together to actually change category count in native Excel, and uses it to collect a new native measurement: the income chart widened to 6 categories. - Refines the working model from "round + chart-specific K" to "floor + font-size-only K", which now reproduces 18 of 24 measured rows across three independent geometric configurations, narrowing the open question to a specific plot-rectangle edge-row effect. - Falsifies one specific edge-row hypothesis (independent whole-point snapping of the plot rectangle's own edges). No runtime code changes -- assets/validation/issue-1621/ only. Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
This was referenced Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xl/workbook.xml's defined-name array literal and its values from a live formula range, both outside the chart part, and overwrites the chart's own cache on open regardless of what the cache says.scripts/probe_harness.pypatches exactly one part per variant, so this is a documented gap in the harness, not a new defect in shipped conversion code.build_category_count_probe.py, which patches both parts together (the workbook-level array literal and the chart'sc:valrange) to actually change category count in native Excel, and uses it to collect a new native measurement: the income chart widened from 5 to 6 categories, closely bracketing the expense chart's own row height from the other side.assets/validation/issue-1621/only.Related issue
Related: #1621
Testing
python3 assets/validation/issue-1621/verify_measurements.pyexits 0, confirming all 5 documented claims (whole-sheet-point quantization across 24 rows, the floor/round split, the floor+size-only-K model's 18/24 reproduction with its exact 6-row exception set, and the edge-snap falsification).python3 scripts/probe_harness.py assets/validation/issue-1621/category-count-cache-only-noop-probe.json --backend office2pdfvs--backend officereproduces the documented no-op finding directly (a real 15.78pt shift against our own converter, layout-identical against native Excel)..rs/runtime config changes — tests skipped per project convention for non-runtime changes.Visual impact
assets/validation/issue-1621/measurement data, a probe-building script, and a verification script; no chart rendering or codegen path is touched, so there is no rendered PDF change to audit.Checklist
Signed-off-byline🤖 Generated with Claude Code