cosmos-explorer/src/views/ChartjsComponentBar.vue
2021-10-09 16:35:08 +08:00

32 lines
540 B
Vue

<script>
import { Bar, mixins } from 'vue-chartjs'
export default {
extends: Bar,
mixins: [mixins.reactiveProp],
props: {
options: {
type: Object,
default: null,
},
},
data() {
return {
// options: {
// plugins: {
// legend: {
// display: false,
// labels: {
// color: 'rgb(255, 99, 132)',
// },
// },
// },
// },
}
},
mounted() {
this.renderChart(this.chartData, this.options)
},
}
</script>