Skip to content

Commit ca8035f

Browse files
committed
modify chart
1 parent caf7d3f commit ca8035f

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/views/dashboard/admin/components/BarChart.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ export default {
6161
containLabel: true
6262
},
6363
xAxis: [{
64-
type: 'category',
65-
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
64+
type: 'value',
6665
axisTick: {
67-
alignWithLabel: true
66+
show: false
6867
}
6968
}],
7069
yAxis: [{
71-
type: 'value',
70+
type: 'category',
71+
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
7272
axisTick: {
73-
show: false
73+
alignWithLabel: true
7474
}
7575
}],
7676
series: [{

src/views/dashboard/admin/index.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@
99
</el-row>
1010

1111
<el-row :gutter="32">
12-
<el-col :xs="24" :sm="24" :lg="8">
12+
<el-col :span="8">
1313
<div class="chart-wrapper">
1414
<raddar-chart />
1515
</div>
1616
</el-col>
17+
<!--
1718
<el-col :xs="24" :sm="24" :lg="8">
1819
<div class="chart-wrapper">
1920
<pie-chart />
2021
</div>
2122
</el-col>
22-
<el-col :xs="24" :sm="24" :lg="8">
23+
-->
24+
<el-col :span="16">
2325
<div class="chart-wrapper">
2426
<bar-chart />
2527
</div>
@@ -45,7 +47,7 @@
4547
import PanelGroup from './components/PanelGroup'
4648
import LineChart from './components/LineChart'
4749
import RaddarChart from './components/RaddarChart'
48-
import PieChart from './components/PieChart'
50+
// import PieChart from './components/PieChart'
4951
import BarChart from './components/BarChart'
5052
import TransactionTable from './components/TransactionTable'
5153
import TodoList from './components/TodoList'
@@ -77,7 +79,7 @@ export default {
7779
PanelGroup,
7880
LineChart,
7981
RaddarChart,
80-
PieChart,
82+
// PieChart,
8183
BarChart,
8284
TransactionTable,
8385
TodoList,

0 commit comments

Comments
 (0)