From ca8035fa98c7c48e229ca0e5380c7aed2d297bae Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 12 Mar 2023 19:47:03 +0800 Subject: [PATCH] modify chart --- src/views/dashboard/admin/components/BarChart.vue | 12 ++++++------ src/views/dashboard/admin/index.vue | 10 ++++++---- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/views/dashboard/admin/components/BarChart.vue b/src/views/dashboard/admin/components/BarChart.vue index be0af34f..0fac61e4 100644 --- a/src/views/dashboard/admin/components/BarChart.vue +++ b/src/views/dashboard/admin/components/BarChart.vue @@ -61,18 +61,18 @@ export default { containLabel: true }, xAxis: [{ + type: 'value', + axisTick: { + show: false + } + }], + yAxis: [{ type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], axisTick: { alignWithLabel: true } }], - yAxis: [{ - type: 'value', - axisTick: { - show: false - } - }], series: [{ name: 'pageA', type: 'bar', diff --git a/src/views/dashboard/admin/index.vue b/src/views/dashboard/admin/index.vue index 68132919..eb9f92b7 100644 --- a/src/views/dashboard/admin/index.vue +++ b/src/views/dashboard/admin/index.vue @@ -9,17 +9,19 @@ - +
+ +
@@ -45,7 +47,7 @@ import PanelGroup from './components/PanelGroup' import LineChart from './components/LineChart' import RaddarChart from './components/RaddarChart' -import PieChart from './components/PieChart' +// import PieChart from './components/PieChart' import BarChart from './components/BarChart' import TransactionTable from './components/TransactionTable' import TodoList from './components/TodoList' @@ -77,7 +79,7 @@ export default { PanelGroup, LineChart, RaddarChart, - PieChart, + // PieChart, BarChart, TransactionTable, TodoList,