mirror of
https://github.com/KevinMidboe/vue-chartjs.git
synced 2025-10-29 18:00:20 +00:00
🐛 Fix reactive-prop example
This commit is contained in:
@@ -50,7 +50,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.fillData()
|
setInterval(() => {
|
||||||
|
this.fillData()
|
||||||
|
}, 2000)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getRandomInt () {
|
getRandomInt () {
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ export default BarChart.extend({
|
|||||||
mixins: [reactiveProp],
|
mixins: [reactiveProp],
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
this.renderChart(this.chartData)
|
this.renderChart(this.chartData, {responsive: true, maintainAspectRatio: false})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user