Repository navigation
feat(chart): add area charts (chartType "area") - #653
Conversation
|
🤖 KiroCrew automated comment ✅ PASS (verdict pending CI): area and stacked-area charts build, read back and rebuild as describedCI has not run on What I checked
Merge note (no change needed here) |
ShotaroKataoka
left a comment
There was a problem hiding this comment.
Thanks — builder, converter, lint, guide and tests are all covered, and the guide follows the same structure as chart-radar. v0.19.0 was released after you opened this, so I merged main into your branch (including #649, which touches the same file) and moved the CHANGELOG entry under [Unreleased]. If you keep working on this branch, pull first.
Closes #620
Summary
Adds native
chartType: "area"support for both unstacked (XL_CHART_TYPE.AREA) and stacked (stacked: true,XL_CHART_TYPE.AREA_STACKED) area charts.Changes
sdpm/sdpm/engine/builder/elements/chart.py): mapped("area", False, False)→XL_CHART_TYPE.AREAand("area", True, False)→XL_CHART_TYPE.AREA_STACKED. Series fill colors, axes, gridlines, legend, and data labels follow the existing bar/area fill path.sdpm/sdpm/engine/converter/chart.py): mappedXL_CHART_TYPE.AREAandXL_CHART_TYPE.AREA_STACKEDto"area"(withstackedwhen stacked) and extracted series fill color for"area", making area charts rebuildable from JSON (AREA_STACKED_100remains non-rebuildable).sdpm/sdpm/engine/schema/lint.py): added"area"to_CHART_TYPES, updated the missing-chartTypediagnostic, and allowedstacked: trueon"area".sdpm/references/guides/chart-area.md, registered it inslide-json-media.md,slide-json-spec.md, andcomposer.md, and added an[Unreleased]Addedentry toCHANGELOG.md.tests/test_chart_roundtrip.py(updatingTestChartsTheJsonCannotDescribeto usestacked100) and lint tests intests/test_lint.py.Verification
make lint: passeduv run pytest tests/test_chart_roundtrip.py tests/test_lint.py -q: 148 passeduv run pytest tests/ -k "guide or doc or chart or lint" -q: 278 passed, 1 xfailed