From c444ec41f935bae3d8a6721b0eade88086e01743 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Fri, 1 Dec 2017 18:23:18 +0100 Subject: [PATCH] Round the values --- elements/polar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/polar.js b/elements/polar.js index e87e876..d4d35c1 100644 --- a/elements/polar.js +++ b/elements/polar.js @@ -95,7 +95,7 @@ class Polar extends Component { result[idx] += val; }); }); - graphData[0].r = result.map(r => (r / ts.days) * 100); + graphData[0].r = result.map(r => Math.round((r / ts.days) * 100)); } else { data.forEach((day, dayIdx) => { day.forEach((val, idx) => {