Skip to content

[charts-premium] Support maps tooltip positioned on items#22648

Merged
alexfauquette merged 8 commits into
mui:masterfrom
alexfauquette:map-tooltip
Jun 18, 2026
Merged

[charts-premium] Support maps tooltip positioned on items#22648
alexfauquette merged 8 commits into
mui:masterfrom
alexfauquette:map-tooltip

Conversation

@alexfauquette

@alexfauquette alexfauquette commented Jun 1, 2026

Copy link
Copy Markdown
Member

This PR makes the tooltip anchor to the corresponding feature bounding box when it exist

Because the tooltip position is in MIT package, I had to move selectors and types to the community like we do for zoom

@alexfauquette alexfauquette added plan: Premium Impact at least one Premium user. 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 Jun 1, 2026
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jun 3, 2026
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@alexfauquette alexfauquette changed the title [charts-premium] Support tooltip positioned on items [charts-premium] Support charts tooltip positioned on items Jun 3, 2026
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jun 3, 2026
@alexfauquette alexfauquette changed the title [charts-premium] Support charts tooltip positioned on items [charts-premium] Support maps tooltip positioned on items Jun 9, 2026
@alexfauquette
alexfauquette marked this pull request as ready for review June 9, 2026 14:39
@alexfauquette
alexfauquette requested a review from JCQuintas as a code owner June 9, 2026 14:39
@code-infra-dashboard

code-infra-dashboard Bot commented Jun 9, 2026

Copy link
Copy Markdown

Deploy preview

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

Bundle size

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 🔺+7.03KB(+1.75%) 🔺+2.4KB(+2.01%)
@mui/x-charts-pro 🔺+7.03KB(+1.36%) 🔺+2.41KB(+1.56%)
@mui/x-charts-premium 🔺+733B(+0.12%) 🔺+375B(+0.20%)
@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%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 2,230.52 ms +44.36 ms(+2.0%) | Renders: 67 (+0)

Test Duration Renders
ScatterChartPro with big data amount and zoomed in (batch renderer) 12.13 ms 🔺+2.23 ms(+22.6%) 2 (+0)
PieChart with big data amount 8.85 ms ▼-2.29 ms(-20.6%) 2 (+0)

24 tests within noise — details

Metric alarms

Test Metric Change
ScatterChartPro with big data amount and zoomed in (batch renderer) bench:paint 🔺 +4.19 ms

Check out the code infra dashboard for more information about this PR.

Comment on lines +2 to +23
import {
geoAlbers,
geoAlbersUsa,
geoAzimuthalEqualArea,
geoAzimuthalEquidistant,
geoConicConformal,
geoConicEqualArea,
geoConicEquidistant,
geoEqualEarth,
geoEquirectangular,
geoGnomonic,
geoMercator,
geoNaturalEarth1,
geoOrthographic,
geoStereographic,
geoTransverseMercator,
geoPath,
type ExtendedFeatureCollection,
type GeoProjection,
type GeoPath,
type GeoConicProjection,
} from '@mui/x-charts-vendor/d3-geo';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds all of these projections to the community package for not a lot of value it seems 🤔

This kinda of follows what we do for axis+zoom, but that is a bit lighter I think 😆

Maybe we should have tooltipItemPositionGetter access state? So we can make it use selectors? Not sure it would work

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With just an object ref copy the additional selector should not have too much of an impact 👍

@alexfauquette
alexfauquette merged commit 47495a7 into mui:master Jun 18, 2026
21 checks passed
mbrookes pushed a commit to mbrookes/mui-x that referenced this pull request Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plan: Premium Impact at least one Premium user. 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