[charts] It's not possible to import DefaultChartsAxisContent
#11136
Labels
bug 🐛
Something doesn't work
component: charts
This is the name of the generic UI component, not the React module!
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/pensive-feather-lyg7vg?file=%2Fsrc%2FDemo.tsx
Steps:
import { DefaultChartsAxisContent } from "@mui/x-charts/ChartsTooltip/ChartsAxisTooltipContent"
axisContent: props => <DefaultChartsAxisContent {...props}/>
ModuleNotFoundError: Could not find module in path: '@mui/x-charts/constants' relative to '/node_modules/@mui/x-charts/hooks/useChartDimensions.js'
Current behavior
Error is thrown
Expected behavior
Component should be able to be imported and used
Context
I'm trying to create a custom
axisContent
component that changes some of the props then callsDefaultChartsAxisContent
, in order to bypass the current limitation that both the x-axis tick labels and the tooltip use the samevalueFormatter
- https://discord.com/channels/1131323012554174485/1131329761952682114/1176399032764092486Related: #10928
Your environment
npx @mui/envinfo
Search keywords: Charts Axis Tooltip
The text was updated successfully, but these errors were encountered: