examples: update to vue-chartjs 3.0.0 (#2580)

* chore(dependencies): Update vue-chartjs and chartjs to latest version

* refactor(examples): Update component creation of charts
This commit is contained in:
Jakub 2018-01-13 20:00:03 +01:00 committed by Pooya Parsa
parent 6dce671498
commit c4c63e0c66
3 changed files with 8 additions and 6 deletions

View File

@ -1,8 +1,9 @@
import { Bar } from 'vue-chartjs'
export default Bar.extend({
export default {
extends: Bar,
props: ['data', 'options'],
mounted() {
this.renderChart(this.data, this.options)
}
})
}

View File

@ -1,8 +1,9 @@
import { Doughnut } from 'vue-chartjs'
export default Doughnut.extend({
export default {
extends: Doughnut,
props: ['data', 'options'],
mounted() {
this.renderChart(this.data, this.options)
}
})
}

View File

@ -2,10 +2,10 @@
"name": "vue-chartjs-nuxt",
"dependencies": {
"axios": "^0.16.2",
"chart.js": "^2.6.0",
"chart.js": "^2.7.1",
"moment": "^2.18.1",
"nuxt": "latest",
"vue-chartjs": "^2.8.2"
"vue-chartjs": "^3.1.0"
},
"scripts": {
"dev": "nuxt",