# echart

- 分组：高级 / 可选能力（Advanced / Optional）
- 页面：/components/echart
- 源码：packages/react/src/components/echart.tsx

## 导出

```ts
import { EChart } from "@modra/react";
```

## Props（EChartProps）

| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| `option` | 是 | `EChartsOption` |  |
| `theme` | 否 | `string \| Record<string, unknown>` | ECharts theme name or registered theme object. Changing it recreates the instance. |
| `renderer` | 否 | `"canvas" \| "svg"` |  |
| `loading` | 否 | `boolean` | Shows the built-in ECharts loading mask over the current option. |
| `onReady` | 否 | `(instance: ECharts) => void` | Called once per instance, right after `echarts.init`, for advanced imperative access. |
