Skip to content

Commit d97d8fa

Browse files
committed
v5.5.10
1 parent 11f1343 commit d97d8fa

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netdata/charts",
3-
"version": "5.5.9",
3+
"version": "5.5.10",
44
"description": "Netdata frontend SDK and chart utilities",
55
"main": "dist/index.js",
66
"module": "dist/es6/index.js",

src/helpers/units/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ import conversableUnits, { makeConversableKey, keys as conversableKeys } from ".
33
import scalableUnits, { keys } from "./scalableUnits"
44

55
export const unitsMissing = u => typeof allUnits.units[u] === "undefined"
6+
7+
const unitOrEmpty = u => (u === null || typeof u === "undefined" ? "" : u)
8+
69
export const getUnitConfig = u =>
710
allUnits.units[u] || {
811
is_scalable: true,
912
is_metric: false,
1013
is_binary: false,
1114
is_bit: false,
12-
print_symbol: u,
13-
name: u,
15+
print_symbol: unitOrEmpty(u),
16+
name: unitOrEmpty(u),
1417
}
1518

1619
const findCurly = u => {

src/sdk/makeChart/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ export default ({
125125
)
126126

127127
node.on("render", render)
128-
node.on("hoverChart", render)
129-
node.on("blurChart", render)
130128
unitConversion(node)
131129

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

0 commit comments

Comments
 (0)