mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 09:50:34 +03:00
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;
|
||
|
}
|
||
|
}
|