Open
Description
Steps to reproduce
Steps:
- Open this link to live example: https://codesandbox.io/p/sandbox/x-charts-pro-domain-limit-zoom-k6ztx7
Current behavior
#15294 introduced a new domainLimit option to axis config. This allows the configuration of the axis scale domain, as described in the docs https://mui.com/x/api/charts/axis-config/#axis-config-prop-domainLimit
This is used by computeAxisValue
However, createAxisFilterMapper
does not take into account this domain limit
The zoom and pan feature depends on the createAxisFilterMapper
function. This results in a desync between what the zoom feature thinks the current domain is vs what the actual domain is, as it assumes it's set to nice
.
The code sandbox has the zoom set to 90%-100%, to show the cases where scaling is a factor.
Expected behavior
No response
Context
No response
Your environment
Search keywords: charts domain limit zoom
Order ID: 96664