Skip to content

Add the pie and donut chart types - #25

Merged
codesensedev merged 1 commit into
mainfrom
695-pie-donut-charts
Nov 26, 2026
Merged

codesensedev merged 1 commit into
mainfrom
695-pie-donut-charts

Conversation

@codesensedev

Copy link
Copy Markdown
Member

Core adds pie and donut charts to the <chart> element (lpdfio/lpdf#198). This adds their constants and the chart's hole and hole-text, so they can be built in code as in XML.

What changes

  • ChartType gains Pie and Donut, and ChartAttr takes hole, a donut's hole as a share of its size, and hole-text, the text in it, 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 pie, a donut and a sparkline take no series, and that no value draws no slice.

How it was checked

  • make test-sdk-java: 258 pass.
  • make check-codegen-sdk-java against the engine and schema of core's branch: 1062 of 1062 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 pie chart, so it fails until a release candidate carries core's change.

Work: 695

ChartType gains Pie and Donut, and ChartAttr takes hole and holeText, all
generated from the schema.

Work: 695
@codesensedev
codesensedev merged commit 22f2a87 into main Nov 26, 2026
3 of 6 checks passed
@codesensedev
codesensedev deleted the 695-pie-donut-charts branch November 26, 2026 03:34
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