feat(multiple): add Material chart component with line, bar, and pie …#33009
Open
Mr-KRAMA wants to merge 2 commits intoangular:mainfrom
Open
feat(multiple): add Material chart component with line, bar, and pie …#33009Mr-KRAMA wants to merge 2 commits intoangular:mainfrom
Mr-KRAMA wants to merge 2 commits intoangular:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #33002. This PR introduces @angular/material/charts, a Material Design–styled SVG chart component that supports line, bar, and pie chart types. It includes the MatChart component, MatChartsModule, and MatChartValuePipe, providing a native charting solution within Angular Material. Currently, Angular Material does not offer built-in chart components, so this addition fills that gap without relying on third-party libraries, helping maintain consistency and reduce external dependencies.
The implementation adds a new entry point at src/material/charts/, along with full support for both M2 and M3 design tokens. It also introduces theming capabilities, including base, color, typography, and density mixins, and updates src/material/_index.scss to expose chart-related theme mixins. Usage is straightforward, allowing developers to render charts using the component with configurable datasets and options.
This PR includes 30 unit tests, has zero TypeScript errors, and does not impact any existing tests or functionality.