Skip to content

Commit

Permalink
v5.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed May 20, 2024
1 parent 1db9b1f commit bcdea77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.0.6",
"version": "5.0.7",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/plugins/unitConversion/getConversionUnits.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import conversableUnits, { makeConversableKey } from "@/helpers/units/conversableUnits"
import convert, { getScales, getUnitConfig, unitsMissing, isAdditive } from "@/helpers/units"
import convert, { getScales, getUnitConfig, unitsMissing, isScalable } from "@/helpers/units"

const scalable = (units, delta, desiredUnits) => {
const [scaleKeys, scaleByKey] = getScales(units)
Expand Down Expand Up @@ -53,7 +53,7 @@ const conversable = (chart, units, delta, desiredUnits) => {
}

const getMethod = (chart, units, min, max) => {
if (unitsMissing(units) || !isAdditive(units)) return ["original"]
if (unitsMissing(units) || !isScalable(units)) return ["original"]

const { desiredUnits } = chart.getAttributes()

Expand Down

0 comments on commit bcdea77

Please sign in to comment.