Add charts.js plugin, basic chart component

This commit is contained in:
2018-07-14 16:36:23 +02:00
parent 6efc3ea790
commit 7a35f5177c
7 changed files with 207 additions and 28 deletions
@@ -0,0 +1,22 @@
import Component from '@ember/component';
export default Component.extend({
chartData: {
datasets: [{
data: [10, 20, 30]
}],
labels: [
'Red',
'Yellow',
'Blue'
]
},
chartOptions: {
legend: {
display: false
}
}
});
@@ -0,0 +1,5 @@
{{ember-chart type='doughnut'
data=chartData
options=chartOptions
width=200
height=200}}