Round the values
This commit is contained in:
parent
34c1b32fea
commit
c444ec41f9
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue