Skip to content

Conversation

@bernardobelchior
Copy link
Member

@bernardobelchior bernardobelchior commented Dec 11, 2025

Split getBarDimensions in smaller functions to avoid unnecessary computations in useBarPlotData (e.g., getBandSize only needs to be called once per series).

Also split the bar dimensions into one function for computing band dimensions and another one for continuous dimensions.

@bernardobelchior bernardobelchior added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: charts Changes related to the charts. labels Dec 11, 2025
@mui-bot
Copy link

mui-bot commented Dec 11, 2025

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

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 🔺+399B(+0.12%) 🔺+140B(+0.14%)
@mui/x-charts-pro 🔺+375B(+0.08%) 🔺+151B(+0.11%)
@mui/x-charts-premium 🔺+389B(+0.09%) 🔺+141B(+0.11%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 458eb2f

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 11, 2025

CodSpeed Performance Report

Merging #20626 will not alter performance

Comparing bernardobelchior:refactor-get-bar-dimensions (458eb2f) with master (9bda61c)

Summary

✅ 13 untouched

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: charts Changes related to the charts. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants