Skip to content

Commit e2cfcf3

Browse files
committed
fix: chart options
1 parent d06723d commit e2cfcf3

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/views/Home.vue

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
>
6161
<line-chart
6262
:chart-data="chartData"
63-
:chart-options="{responsive: true}"
63+
:chart-options="chartOptions"
6464
:style="{height: '100%'}"
6565
/>
6666
</div>
@@ -102,7 +102,24 @@ export default {
102102
data () {
103103
return {
104104
titleStack: ['Admin', 'Dashboard'],
105-
chartData: null
105+
chartData: null,
106+
chartOptions: {
107+
responsive: true,
108+
maintainAspectRatio: true,
109+
scales: {
110+
y: {
111+
display: false
112+
},
113+
x: {
114+
display: true
115+
}
116+
},
117+
plugins: {
118+
legend: {
119+
display: false
120+
}
121+
}
122+
}
106123
}
107124
},
108125
mounted () {

0 commit comments

Comments
 (0)