From f1a43b9a8644a50462d68b5e6a7c1d186915d4ff Mon Sep 17 00:00:00 2001 From: letsgocoding <sdxt_0802@163.com> Date: 星期三, 05 三月 2025 23:28:25 +0800 Subject: [PATCH] !106 !105 update the relation of template code and collect code Merge pull request !106 from letsgocoding/develop1.0 --- zhitan-vue/src/views/comprehensive/comps/LineChart.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/zhitan-vue/src/views/comprehensive/comps/LineChart.vue b/zhitan-vue/src/views/comprehensive/comps/LineChart.vue index e9cc744..75914f3 100644 --- a/zhitan-vue/src/views/comprehensive/comps/LineChart.vue +++ b/zhitan-vue/src/views/comprehensive/comps/LineChart.vue @@ -31,6 +31,10 @@ } ) +onMounted(() => { + initChart() +}) + function initChart(value) { const chartDom = document.getElementById("ChartDom") if (echarts.getInstanceByDom(chartDom)) { @@ -45,7 +49,7 @@ color: "#2979ff", }, }, - color: ["#2979ff", "#19be6b", "#ff9900", "#fa3534"], + color: ["#40c2ff", "#2979ff", "#ff9900", "#fa3534"], tooltip: { trigger: "axis", axisPointer: { @@ -61,7 +65,7 @@ }, }, grid: { - top: "40", + top: "60", left: "50", right: "40", bottom: "20", -- Gitblit v1.9.3