Skip to content

ChartsSurface API

API reference docs for the React ChartsSurface component. Learn about the props, CSS, and other APIs of this exported module.

Component demos

Import

import { ChartsSurface } from '/packages/x-charts/src/ChartsSurface.tsx';
// or
import { ChartsSurface } from '@mui/x-charts';
Learn about the difference by reading this guide on minimizing bundle size.

Props

heightRequired

The height of the chart in px.

Type:number


widthRequired

The width of the chart in px.

Type:number


disableAxisListener

If true, the charts will not listen to the mouse move event. It might break interactive features, but will improve performance.

Type:bool

Default:false


The component cannot hold a ref.