Skip to content

AreaPlot API

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

Component demos

Import

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

Props

onItemClick

Callback fired when a line area item is clicked.

Type:func

Signature:
function(event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void
  • event The event source of the callback.
  • lineItemIdentifier The line item identifier.

skipAnimation

If true, animations are skipped.

Type:bool

Default:false


slotProps

The props used for each component slot.

Type:object

Default:{}


slots

Overridable component slots.

See Slots API below for more details.

Type:object

Default:{}


The component cannot hold a ref.

Slots

area

The component that renders the area.

Default component: AnimatedArea