User Story
As a Wikipedia editor, I want to be able to create basic pie charts that can be embedded in articles so that I can enhance encyclopedic content through data visualization.
Acceptance Criteria
- It's possible to define a .chart file that accept a new parameter of "type": "pie" with a single series.
- "type": "pie" definitions generate a basic pie chart on preview (like this example).
- "type": "pie" definitions can be embedded in an article to render a basic pie chart.
- Must have a legend. See T375233 (Result of spike T369863)
- Must use the default color scheme and patterns for each individual segment. See T375234 (Result of spike T369863)
Design
Chart standards
- Default chart styling definitions for elements such as the title, legend, etc. can be found in T375235: Apply default styling for charts
- Default color scheme design definitions can be found in T375234: Define color scheme for charts
- Pattern/symbol functionality design definitions can be found in T375313: Define pattern/node scheme for accessible charts
Pie chart specifics
- Slices of the chart should have a borderRadius: 4 and a borderWidth: 2
- There should also be a borderColor: '#fff' in light mode and borderColor: '#101418 in dark mode
Light mode example
Dark mode example

