Skip to content

Commit

Permalink
v5.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed May 20, 2024
1 parent b7820b6 commit 1db9b1f
Show file tree
Hide file tree
Showing 7 changed files with 412 additions and 432 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.5",
"version": "5.0.6",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
4 changes: 3 additions & 1 deletion src/components/easyPie/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
useAttributeValue,
useLatestConvertedValue,
useOnResize,
useDimensionIds,
} from "@/components/provider"
import withChart from "@/components/hocs/withChart"
import { ChartWrapper } from "@/components/hocs/withTile"
Expand All @@ -29,7 +30,8 @@ export const Value = () => {
}

export const Unit = () => {
const unit = useUnitSign()
const [firstDimId] = useDimensionIds()
const unit = useUnitSign({ dimensionId: firstDimId })
return (
<Label color="textLite" fontSize="1.5em">
{unit}
Expand Down
14 changes: 7 additions & 7 deletions src/components/toolbox/chartType.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ const useItems = chart =>
svg: barChart,
"data-track": chart.track("chartType-multiBar"),
},
{
value: "table",
label: "Table",
icon: <Icon svg={tableChart} {...iconProps} />,
svg: tableChart,
"data-track": chart.track("chartType-tableBar"),
},
// {
// value: "table",
// label: "Table",
// icon: <Icon svg={tableChart} {...iconProps} />,
// svg: tableChart,
// "data-track": chart.track("chartType-tableBar"),
// },
{
value: "heatmap",
label: "Heatmap",
Expand Down
Loading

0 comments on commit 1db9b1f

Please sign in to comment.