mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
d05d22c177
refs: https://github.com/TryGhost/Team/issues/1436 - added in lots of demo graphs using EmberChart - renamed some files in v5 folder for better conventions - put each graph for new dashboard into separate components
38 lines
883 B
JavaScript
38 lines
883 B
JavaScript
import Component from '@glimmer/component';
|
|
|
|
export default class ChartPaidMembers extends Component {
|
|
get chartType() {
|
|
return 'bar';
|
|
}
|
|
|
|
get chartData() {
|
|
return {
|
|
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June'],
|
|
datasets: [
|
|
{
|
|
data: [65, 59, 80, 81, 56, 55, 40],
|
|
fill: false,
|
|
backgroundColor: '#14b8ff',
|
|
tension: 0.1
|
|
},{
|
|
data: [-65, -59, -80, -81, -56, -55, -40],
|
|
fill: false,
|
|
backgroundColor: '#E16262',
|
|
tension: 0.1
|
|
}]
|
|
};
|
|
}
|
|
|
|
get chartOptions() {
|
|
return {
|
|
legend: {
|
|
display: false
|
|
}
|
|
};
|
|
}
|
|
|
|
get chartHeight() {
|
|
return 150;
|
|
}
|
|
}
|