Skip to content

Comments

Feat: Add ImPlotPieChartFlags_NoSliceBorder and custom pie renderers#679

Open
brenocq wants to merge 2 commits intomasterfrom
feat/pie-chart-no-border-flag
Open

Feat: Add ImPlotPieChartFlags_NoSliceBorder and custom pie renderers#679
brenocq wants to merge 2 commits intomasterfrom
feat/pie-chart-no-border-flag

Conversation

@brenocq
Copy link
Collaborator

@brenocq brenocq commented Feb 17, 2026

Closes #582

Summary

Adds ImPlotPieChartFlags_NoSliceBorder flag to disable pie chart slice borders. Useful if use want's to avoid visual artifacts of overlapping pie slices.

Image

Changes

  • Added ImPlotPieChartFlags_NoSliceBorder flag
  • Refactored pie slice rendering to use custom primitives instead of AddConvexPolyFilled/AddPolyline
  • Implemented PrimPieSliceFill() - triangle fan rendering for filled slices
  • Implemented PrimPieSliceLine() - AA-aware polyline rendering for borders
  • Updated demo with checkbox to toggle border visibility

@brenocq brenocq self-assigned this Feb 17, 2026
@brenocq brenocq added type:feat New feature or request prio:low Low priority status:review The task is under review labels Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prio:low Low priority status:review The task is under review type:feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pie chart polyline should be optional

1 participant