-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[charts] Add color
prop to Sparkline and deprecate colors
#16477
Conversation
Deploy preview: https://deploy-preview-16477--material-ui-x.netlify.app/ Updated pages: |
CodSpeed Performance ReportMerging #16477 will not alter performanceComparing Summary
|
51a4174
to
ecdb48c
Compare
color
prop to Sparkline. Deprecated colors
. Update colors
defaults.color
prop to Sparkline and deprecate colors
9e53d77
to
5d122ad
Compare
@@ -82,7 +82,7 @@ ChartDataProviderPro.propTypes = { | |||
children: PropTypes.node, | |||
/** | |||
* Color palette used to colorize multiple series. | |||
* @default rainbowSurgePalette | |||
* @default blueberryTwilightPalette |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed from rainbowSurgePalette
to blueberryTwilightPalette
? Rainbow surge is the new one and should be the default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, it wasn't intended.
Before I had the update to the default color in this PR as well, but when I moved it into a different one I must have messed something up. It's fixed now!
@@ -17,7 +17,7 @@ export interface UseChartSeriesParameters<T extends ChartSeriesType = ChartSerie | |||
series?: AllSeriesType<T>[]; | |||
/** | |||
* Color palette used to colorize multiple series. | |||
* @default rainbowSurgePalette | |||
* @default blueberryTwilightPalette |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the change 😄
Add
color
prop toSparkLineChart
and deprecatecolors
. The reasoning is explained in this comment.Fixes #11707.