From ddbc612f0bc9e349fc153ba7267785cec727e925 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Sat, 2 May 2020 15:03:43 +0530 Subject: [PATCH] Bug: Use beginAtZero option for reports (#803) --- app/javascript/dashboard/components/widgets/chart/BarChart.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/chart/BarChart.js b/app/javascript/dashboard/components/widgets/chart/BarChart.js index c005da033..f401a2a1b 100644 --- a/app/javascript/dashboard/components/widgets/chart/BarChart.js +++ b/app/javascript/dashboard/components/widgets/chart/BarChart.js @@ -14,7 +14,7 @@ const chartOptions = { scales: { xAxes: [ { - barPercentage: 1.9, + barPercentage: 1.26, ticks: { fontFamily, }, @@ -27,6 +27,7 @@ const chartOptions = { { ticks: { fontFamily, + beginAtZero: true, }, gridLines: { display: false,