Skip to content

Add the line, area and sparkline chart types - #24

Merged
codesensedev merged 5 commits into
mainfrom
694-line-area-charts
Nov 26, 2026
Merged

codesensedev merged 5 commits into
mainfrom
694-line-area-charts

Conversation

@codesensedev

@codesensedev codesensedev commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Core adds line, area and sparkline charts to the <chart> element (lpdfio/lpdf#197). This adds their constants and the chart's stroke-width, so they can be built in code as in XML.

What changes

  • ChartType.LINE, ChartType.AREA and ChartType.SPARKLINE, and ChartAttr takes strokeWidth(...), the width of the lines, generated from the schema (make gen-sdk-api). The docs of the chart's attributes say what each does on the new kinds.
  • The chart builders' docs say that a series colors its bars, line or area, and that no value draws no bar and breaks a line, an area or a sparkline, counting as zero in a stacked area.

How it was checked

  • make test-sdk-java: 258 pass.
  • make check-codegen-sdk-java against the engine and schema of core's branch: 1056 of 1056 documents render the PDF of their XML, the new chart fixtures and corpus documents among them.
  • This repository's CI builds against the last core release, which has no line chart, so it fails until a release candidate carries core's change.

Work: 694

@codesensedev
codesensedev merged commit 37c06f5 into main Nov 26, 2026
3 of 6 checks passed
@codesensedev
codesensedev deleted the 694-line-area-charts branch November 26, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant