comptes/src/components/charjs_donut.vue

18 lines
311 B
Vue
Raw Normal View History

<script>
2018-12-03 10:53:01 +00:00
import { Doughnut, mixins } from 'vue-chartjs'
const { reactiveProp } = mixins
export default {
name: 'pie',
extends: Doughnut,
2018-12-03 10:53:01 +00:00
mixins: [reactiveProp],
props: ['chartData', 'options'],
mounted () {
2018-12-03 10:53:01 +00:00
this.renderChart(this.chartData, this.options)
}
}
</script>
<style scope>
</style>