Skip to content
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

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

alexfauquette
Copy link
Member

Fix #16183

For me that's not realy a breaking change. It's more of an improvement

@alexfauquette alexfauquette added the component: charts This is the name of the generic UI component, not the React module! label Jan 17, 2025
@mui-bot
Copy link

mui-bot commented Jan 17, 2025

Deploy preview: https://deploy-preview-16229--material-ui-x.netlify.app/

Updated pages:

Generated by 🚫 dangerJS against 2e5837d

Copy link

codspeed-hq bot commented Jan 17, 2025

CodSpeed Performance Report

Merging #16229 will not alter performance

Comparing alexfauquette:extend-line (2e5837d) with master (08b9c66)

Summary

✅ 6 untouched benchmarks

@alexfauquette alexfauquette changed the title [charts] expand line with step interpolation [charts] Expand line with step interpolation Jan 18, 2025
Copy link
Member

@JCQuintas JCQuintas left a 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

Comment on lines 68 to +73
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;
Copy link
Member

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? 🤔

Copy link
Member Author

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.

@alexfauquette alexfauquette merged commit 00a0483 into mui:master Jan 21, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: charts This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[charts] Extend curve when using curve: 'step' to match bar graph
3 participants