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.

Demos

For examples and details on the usage of this React component, visit the component demo pages:

    Import

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

    Props

    slotProps

    The props used for each component slot.

    Type:

    object

    Default:

    {}

    slots

    Overridable component slots.

    Type:

    object

    Default:

    {}

    The component cannot hold a ref.