comptes/src/components/charjs_donut.vue

20 lines
296 B
Vue
Raw Normal View History

<script>
import { Doughnut } from 'vue-chartjs'
export default {
name: 'pie',
extends: Doughnut,
props: ['chartdata', 'options'],
mounted () {
this.renderChart(this.chartdata, this.options)
}
}
</script>
<style scope>
#doughnut-chart {
width: 100px;
height: 100px;
}
</style>