2026-07-10 16:44:49 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* ECharts 按需引入
|
|
|
|
|
|
* 仅注册训练曲线所需的模块,避免引入全量包以减小体积
|
|
|
|
|
|
*/
|
|
|
|
|
|
import { use } from 'echarts/core'
|
|
|
|
|
|
import { CanvasRenderer } from 'echarts/renderers'
|
2026-07-14 16:10:59 +08:00
|
|
|
|
import { BarChart, LineChart, PieChart } from 'echarts/charts'
|
2026-07-10 16:44:49 +08:00
|
|
|
|
import {
|
|
|
|
|
|
GridComponent,
|
|
|
|
|
|
TooltipComponent,
|
|
|
|
|
|
LegendComponent,
|
|
|
|
|
|
DataZoomComponent,
|
|
|
|
|
|
MarkLineComponent,
|
|
|
|
|
|
} from 'echarts/components'
|
|
|
|
|
|
|
|
|
|
|
|
use([
|
|
|
|
|
|
CanvasRenderer,
|
2026-07-11 14:49:37 +08:00
|
|
|
|
BarChart,
|
2026-07-10 16:44:49 +08:00
|
|
|
|
LineChart,
|
2026-07-14 16:10:59 +08:00
|
|
|
|
PieChart,
|
2026-07-10 16:44:49 +08:00
|
|
|
|
GridComponent,
|
|
|
|
|
|
TooltipComponent,
|
|
|
|
|
|
LegendComponent,
|
|
|
|
|
|
DataZoomComponent,
|
|
|
|
|
|
MarkLineComponent,
|
|
|
|
|
|
])
|