Add Doughnut Chart component

This commit is contained in:
Jakub Juszczak
2016-07-01 18:58:25 +02:00
parent 70a3b983b2
commit 84ae683bfa
5 changed files with 71 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
import DoughnutChart from '../BaseCharts/Doughnut'
export default DoughnutChart.extend({
ready () {
this.render({
labels: ['VueJs', 'EmberJs', 'ReactJs', 'AngularJs'],
datasets: [
{
backgroundColor: [
'#41B883',
'#E46651',
'#00D8FF',
'#DD1B16'
],
data: [40, 20, 80, 10]
}
]
})
}
})