mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 18:29:19 +08:00
fix(company-overview): 修复店铺经营健康度分层散点图不显示的问题
- 散点图改用 shopComparisons 数据,x轴=达成率,y轴=税后盈亏,气泡大小=销售额,颜色=费比 - 添加 watch + onMounted 确保图表正确渲染 - echarts 插件补充 ScatterChart 支持
This commit is contained in:
@@ -2,6 +2,7 @@ import type {
|
||||
// 系列类型的定义后缀都为 SeriesOption
|
||||
BarSeriesOption,
|
||||
LineSeriesOption,
|
||||
ScatterSeriesOption,
|
||||
} from 'echarts/charts';
|
||||
import type {
|
||||
DatasetComponentOption,
|
||||
@@ -12,7 +13,13 @@ import type {
|
||||
} from 'echarts/components';
|
||||
import type { ComposeOption } from 'echarts/core';
|
||||
|
||||
import { BarChart, LineChart, PieChart, RadarChart } from 'echarts/charts';
|
||||
import {
|
||||
BarChart,
|
||||
LineChart,
|
||||
PieChart,
|
||||
RadarChart,
|
||||
ScatterChart,
|
||||
} from 'echarts/charts';
|
||||
import {
|
||||
// 数据集组件
|
||||
DatasetComponent,
|
||||
@@ -34,6 +41,7 @@ export type ECOption = ComposeOption<
|
||||
| DatasetComponentOption
|
||||
| GridComponentOption
|
||||
| LineSeriesOption
|
||||
| ScatterSeriesOption
|
||||
| TitleComponentOption
|
||||
| TooltipComponentOption
|
||||
>;
|
||||
@@ -49,6 +57,7 @@ echarts.use([
|
||||
TransformComponent,
|
||||
BarChart,
|
||||
LineChart,
|
||||
ScatterChart,
|
||||
LabelLayout,
|
||||
UniversalTransition,
|
||||
CanvasRenderer,
|
||||
|
||||
Reference in New Issue
Block a user