Skip to content

Commit

Permalink
v5.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Jul 12, 2024
1 parent f3bf35c commit 2350d09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/charts",
"version": "5.3.6",
"version": "5.3.7",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/plugins/unitConversion/getConversionUnits.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const decimals = [1000, 100, 10, 1, 0.1, 0.01, 0.001]
const getFractionDigits = value => {
const index = decimals.findIndex(d => value > d)
const digits = index === -1 ? decimals.length - 1 : index
return digits === 3 ? 2 : digits
return digits === 3 ? 4 : digits
}

export const getConversionAttributes = (chart, unit, { min, max, maxDecimals = 5 }) => {
Expand Down

0 comments on commit 2350d09

Please sign in to comment.