mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Refined no-data chart for total members
This commit is contained in:
parent
df04ec78e7
commit
5491ee0d55
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
const chartData = this.get('chartData').datasets[0].data;
|
||||||
let allZeros = true;
|
let allZeros = true;
|
||||||
for (let i = 0; i < chartData.length; i++) {
|
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;
|
options.scales.yAxes[0].ticks.suggestedMin = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isSmall) {
|
if (this.isSmall) {
|
||||||
options.scales.yAxes[0].ticks.display = false;
|
options.scales.yAxes[0].ticks.display = false;
|
||||||
options.scales.xAxes[0].gridLines.display = true;
|
options.scales.xAxes[0].gridLines.display = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue