-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[charts] WIP: Bar range poc #20033
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
base: master
Are you sure you want to change the base?
[charts] WIP: Bar range poc #20033
Conversation
bernardobelchior
commented
Oct 20, 2025
- I have followed (at least) the PR section of the contributing guide.
|
Deploy preview: https://deploy-preview-20033--material-ui-x.netlify.app/ Updated pages: Bundle size report
|
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
6c15f5d to
f262b6c
Compare
41cb1c6 to
2f91277
Compare
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
2f91277 to
f3c5890
Compare
|
Another issue we'll have is that I think we'll need to use the type augmentation that we tried in #20084. Another option would be to move the |
Can't we ask users to check type for now, and change the API on the next major? |
What do you mean by this? How wouldn't this be a breaking change? If I understood correctly, we consider type changes like this a breaking change |
This should add to the type, // Current
const t1: BarItem = {
seriesId: 'series-1',
dataIndex: 0,
value: 100,
};
// Would just become
const t2: BarItem = {
seriesId: 'series-1',
dataIndex: 0,
value: 100,
type: 'bar'
};
// BarRange
const t3: BarItem = {
seriesId: 'series-1',
dataIndex: 0,
value: null,
type: 'bar-range',
range: {x:1,y:2}
}; |
|
Ah, you're right. I didn't understand it. Yeah, that would work, I think, but it feels like we're taking tech debt and we'll need to clean up it later either way since I don't think that API is desirable. If we opt for moving the Do you see significant problems or cons with this approach? |
🤔 true |
Just realized that this wouldn't work without a breaking change either. If we add this behavior to |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
def871f to
04fe0a0
Compare
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
c7478ae to
e9ec3e2
Compare
e9ec3e2 to
fd9046a
Compare
CodSpeed Performance ReportMerging #20033 will not alter performanceComparing Summary
Footnotes |
3392ec1 to
2cb2863
Compare
| { | ||
| id: 'y', | ||
| scaleType: 'linear', | ||
| domainLimit: nice([min, max]), |
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.
Requires #20161
2cb2863 to
b48bf96
Compare