From 8d7bd3b4d15882a09c788d1c5d2b1998ce2e8dc9 Mon Sep 17 00:00:00 2001 From: panqihua Date: Thu, 19 Jan 2023 04:55:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1-=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=86=E7=B1=BB=E6=8E=92=E8=A1=8C=E6=A6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/echarts.js | 15 ++- .../data_statistics/category_ranking.vue | 99 +++++++++++++++++++ 2 files changed, 111 insertions(+), 3 deletions(-) create mode 100644 src/views/platform/data_statistics/category_ranking.vue diff --git a/src/plugins/echarts.js b/src/plugins/echarts.js index 18be75f..c419c84 100644 --- a/src/plugins/echarts.js +++ b/src/plugins/echarts.js @@ -1,7 +1,12 @@ import * as echarts from "echarts/core"; -import { GridComponent, TooltipComponent } from "echarts/components"; -import { LineChart } from "echarts/charts"; -import { UniversalTransition } from "echarts/features"; +import { + GridComponent, + TooltipComponent, + TitleComponent, + LegendComponent, +} from "echarts/components"; +import { LineChart, PieChart } from "echarts/charts"; +import { UniversalTransition, LabelLayout } from "echarts/features"; import { CanvasRenderer } from "echarts/renderers"; echarts.use([ GridComponent, @@ -9,5 +14,9 @@ echarts.use([ LineChart, CanvasRenderer, UniversalTransition, + TitleComponent, + LegendComponent, + PieChart, + LabelLayout, ]); export default echarts; diff --git a/src/views/platform/data_statistics/category_ranking.vue b/src/views/platform/data_statistics/category_ranking.vue new file mode 100644 index 0000000..ab88a2e --- /dev/null +++ b/src/views/platform/data_statistics/category_ranking.vue @@ -0,0 +1,99 @@ + + + \ No newline at end of file