Round the values

This commit is contained in:
Henri Bergius 2017-12-01 18:23:18 +01:00
parent 34c1b32fea
commit c444ec41f9

View file

@ -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) => {