Skip to content

Commit 0018e0e

Browse files
committed
Fewer decimals in tooltip
1 parent e92bdbb commit 0018e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fhf-datafangst-client/src/components/Graphs/SpeciesHistogram.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,5 +181,5 @@ interface TooltipParams {
181181
const formatter = (data: TooltipParams[]) => {
182182
const params = data[0];
183183

184-
return `<h3>${params.value[0]}</h3> <br/> <b> Forrige tur </b>: ${params.value[1]} kg <br/> <b>Snitt </b>: ${params.value[2]} kg`;
184+
return `<h3>${params.value[0]}</h3> <br/> <b> Forrige tur </b>: ${params.value[1].toFixed(2)} kg <br/> <b>Snitt </b>: ${params.value[2].toFixed(2)} kg`;
185185
};

0 commit comments

Comments
 (0)