AreaPlotAPI
React AreaPlot 组件的 API 参考文档。了解此导出模块的 props、CSS 和其他 API。
演示
导入
import { AreaPlot } from '@mui/x-charts/LineChart';
// or
import { AreaPlot } from '@mui/x-charts';
// or
import { AreaPlot } from '@mui/x-charts-pro';通过阅读关于最小化 bundle size 的指南了解差异。
| 名称 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| onItemClick | func | - | 当点击折线区域项时触发的回调。 签名: function(event: React.MouseEvent
|
| skipAnimation | bool | false | 如果为 |
| slotProps | object | {} | 用于每个组件插槽的 props。 |
| slots | object | {} | 可覆盖的组件插槽。 有关更多详细信息,请参阅下面的 Slots API。 |
该组件无法持有 ref。
| 插槽名称 | 类名 | 默认组件 | 描述 |
|---|---|---|---|
| area | AnimatedArea | 渲染区域的组件。 |
源代码
如果您在此页面中找不到所需信息,请考虑查看组件的实现以获取更多详细信息。