Skip to content

feat(dataviz): add M3 chart components package with Storybook - #6142

Closed
Sam4829 wants to merge 1 commit into
material-components:mainfrom
Sam4829:ccr-5573aef1-dcev35
Closed

Sam4829 wants to merge 1 commit into
material-components:mainfrom
Sam4829:ccr-5573aef1-dcev35

Conversation

@Sam4829

@Sam4829 Sam4829 commented Dec 3, 2026

Copy link
Copy Markdown

Adds a separate m3-charts package under dataviz/ (excluded from the root build, manifest and publish):

  • 12 chart elements: bar (simple/grouped/stacked, vertical/horizontal), line, area, stacked area, histogram, scatter, bubble, pie, donut, gauge
  • Token layer: --m3-chart-* -> --md-sys-color-* / --m3-ext-* -> baseline light fallbacks; no raw colours in components
  • Extended categorical palette generated with Material Color Utilities, validated for 3:1 contrast and colour-blindness distinctness
  • Chart controls from material-web: md-filter-chip legend, md-icon-button
    • md-menu toolbar, md-dialog data table; keyboard navigation with live-region announcements
  • Storybook with per-chart docs, palette/tokens reference and a live theming page that re-validates the palette per seed

Claude-Session: https://claude.ai/code/session_01F5HretBku5nN8rtp22NoYd

Adds a separate `m3-charts` package under dataviz/ (excluded from the
root build, manifest and publish):

- 12 chart elements: bar (simple/grouped/stacked, vertical/horizontal),
  line, area, stacked area, histogram, scatter, bubble, pie, donut, gauge
- Token layer: --m3-chart-* -> --md-sys-color-* / --m3-ext-* -> baseline
  light fallbacks; no raw colours in components
- Extended categorical palette generated with Material Color Utilities,
  validated for 3:1 contrast and colour-blindness distinctness
- Chart controls from material-web: md-filter-chip legend, md-icon-button
  + md-menu toolbar, md-dialog data table; keyboard navigation with
  live-region announcements
- Storybook with per-chart docs, palette/tokens reference and a live
  theming page that re-validates the palette per seed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F5HretBku5nN8rtp22NoYd
@google-cla

google-cla Bot commented Dec 3, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Sam4829 Sam4829 closed this Dec 3, 2026
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.

2 participants