Skip to content

Commit

Permalink
Chart: Rollback smart rounding of values, only keep small number part
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Jan 31, 2025
1 parent c56d552 commit ceba597
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions front/src/components/boxs/chart/yAxisFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ const yAxisFormatter = value => {
}

// For normal values, format with up to 2 decimal places
return roundedValue.toLocaleString(undefined, {
minimumFractionDigits: 0,
maximumFractionDigits: 2
});
return value.toFixed(2);
};

export { yAxisFormatter };

0 comments on commit ceba597

Please sign in to comment.