Skip to content

Commit

Permalink
v5.5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Jan 29, 2025
1 parent 11f1343 commit d97d8fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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.5.9",
"version": "5.5.10",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
7 changes: 5 additions & 2 deletions src/helpers/units/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ import conversableUnits, { makeConversableKey, keys as conversableKeys } from ".
import scalableUnits, { keys } from "./scalableUnits"

export const unitsMissing = u => typeof allUnits.units[u] === "undefined"

const unitOrEmpty = u => (u === null || typeof u === "undefined" ? "" : u)

export const getUnitConfig = u =>
allUnits.units[u] || {
is_scalable: true,
is_metric: false,
is_binary: false,
is_bit: false,
print_symbol: u,
name: u,
print_symbol: unitOrEmpty(u),
name: unitOrEmpty(u),
}

const findCurly = u => {
Expand Down
2 changes: 0 additions & 2 deletions src/sdk/makeChart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ export default ({
)

node.on("render", render)
node.on("hoverChart", render)
node.on("blurChart", render)
unitConversion(node)

node.getConvertedValue = (value, { fractionDigits, key = "units", dimensionId } = {}) => {
Expand Down

0 comments on commit d97d8fa

Please sign in to comment.