-
-
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] Expand line with step interpolation #16229
Conversation
Deploy preview: https://deploy-preview-16229--material-ui-x.netlify.app/ Updated pages: |
CodSpeed Performance ReportMerging #16229 will not alter performanceComparing Summary
|
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.
It works, I've left a comment on the API, but I don't know how feasible it is
curve?: CurveType; | ||
/** | ||
* If `true`, step curve starts and end at the first and last point. | ||
* By default the line is extended to fill the space before and after. | ||
*/ | ||
strictStepCurve?: boolean; |
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.
Would addind a curve: 'strict-step'
option a cleaner approach than this flag? 🤔
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 really because we also have step-before
and step-after
.
I do not expect people to use this flag. The docs is more here to highlight the special behavior on band scale than to encourage using it.
Fix #16183
For me that's not realy a breaking change. It's more of an improvement