Ghost/ghost/admin/app/components/dashboard/v5/chart-paid-members.js
James Morris d05d22c177 Better faked graphs and various tweaks for Dashboard 5.0 prototype
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
2022-03-22 21:59:47 +05:30

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;
}
}