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