vue-chartjs-typescript
Version:
Fork from vue-chartjs with typescript definitions
22 lines (20 loc) • 451 B
JavaScript
import { Doughnut } from '../BaseCharts'
export default {
extends: Doughnut,
mounted () {
this.renderChart({
labels: ['VueJs', 'EmberJs', 'ReactJs', 'AngularJs'],
datasets: [
{
backgroundColor: [
'#41B883',
'#E46651',
'#00D8FF',
'#DD1B16'
],
data: [40, 20, 80, 10]
}
]
}, {responsive: true, maintainAspectRatio: false})
}
}