mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Refined no-data chart for total members
This commit is contained in:
parent
df04ec78e7
commit
5491ee0d55
@ -296,7 +296,7 @@ export default Component.extend({
|
||||
}
|
||||
};
|
||||
|
||||
if (this.chartType === 'mrr') {
|
||||
if (this.chartType === 'mrr' || this.chartType === 'all-members') {
|
||||
const chartData = this.get('chartData').datasets[0].data;
|
||||
let allZeros = true;
|
||||
for (let i = 0; i < chartData.length; i++) {
|
||||
@ -312,9 +312,10 @@ export default Component.extend({
|
||||
}
|
||||
}
|
||||
|
||||
if (this.chartType === 'all-members' || this.chartType === 'open-rate') {
|
||||
if (this.chartType === 'open-rate') {
|
||||
options.scales.yAxes[0].ticks.suggestedMin = 0;
|
||||
}
|
||||
|
||||
if (this.isSmall) {
|
||||
options.scales.yAxes[0].ticks.display = false;
|
||||
options.scales.xAxes[0].gridLines.display = true;
|
||||
|
Loading…
Reference in New Issue
Block a user