Skip to content

Commit

Permalink
v4.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Mar 27, 2024
1 parent 357f6e8 commit 6c567d8
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": "4.4.7",
"version": "4.4.8",
"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 @@ -63,7 +63,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 ? 4 : digits
return digits === 3 ? 2 : digits
}

const getConversionUnits = (chart, unitsKey, min, max, maxDecimals = 5) => {
Expand Down

0 comments on commit 6c567d8

Please sign in to comment.