Skip to content

Commit

Permalink
v5.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Jan 17, 2025
1 parent 201f657 commit 3f975a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
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.7",
"version": "5.5.8",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/components/provider/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ export const useValue = (
{ valueKey = "value", objKey = "viewDimensions", abs, unitsKey = "units", allowNull } = {}
) => {
const chart = useChart()
abs = typeof abs === "boolean" ? abs : chart.getAttribute("abs")

const [value, setState] = useState(null)

Expand Down
1 change: 1 addition & 0 deletions src/sdk/initialAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export default {
highlighting: false,

desiredUnits: "auto",
abs: true,

unitsConversionMethod: [""],
unitsConversionDivider: [-1],
Expand Down

0 comments on commit 3f975a1

Please sign in to comment.