Refined defaults for Dashboard charts

This commit is contained in:
Peter Zimon 2021-02-24 17:21:23 +01:00
parent 6f3152fb47
commit 8c26f821a5
1 changed files with 3 additions and 0 deletions

View File

@ -295,6 +295,9 @@ export default Component.extend({
}]
}
};
if (this.chartType === 'mrr' || this.chartType === 'all-members' || 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;