🐛 Fix reactive-prop example

This commit is contained in:
Jakub Juszczak
2017-07-02 16:18:47 +02:00
parent 9d44758976
commit 80799b7bd5
2 changed files with 4 additions and 2 deletions

View File

@@ -50,7 +50,9 @@
} }
}, },
mounted () { mounted () {
this.fillData() setInterval(() => {
this.fillData()
}, 2000)
}, },
methods: { methods: {
getRandomInt () { getRandomInt () {

View File

@@ -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})
} }
}) })