cosmos-explorer/src/views/ChartjsComponentDoughnutChart.vue
2021-08-16 17:02:28 +08:00

22 lines
344 B
Vue

<script>
import { Doughnut, mixins } from 'vue-chartjs'
export default {
extends: Doughnut,
mixins: [mixins.reactiveProp],
props: {
data: {
type: Object,
default: null,
},
options: {
type: Object,
default: null,
},
},
mounted() {
this.renderChart(this.data, this.options)
},
}
</script>