Skip to content

Commit

Permalink
v4.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Mar 13, 2024
1 parent f60b5c9 commit 41fe088
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 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": "4.4.6",
"version": "4.4.7",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/chartLibraries/dygraph/plotters/annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export default chartUI => plotter => {
const ctx = plotter.drawingContext
const points = plotter.points

if (!points.length || !points[1]) return

let min_sep = points[1].canvasx - points[0].canvasx + 1

const bar_width = Math.floor(min_sep)
Expand Down
2 changes: 1 addition & 1 deletion src/chartLibraries/dygraph/plotters/anomaly.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default chartUI => plotter => {
const ctx = plotter.drawingContext
const points = plotter.points

if (!points.length) return
if (!points.length || !points[1]) return

let min_sep = points[1].canvasx - points[0].canvasx + 1

Expand Down
8 changes: 2 additions & 6 deletions src/components/filterToolbox/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,8 @@ const Label = forwardRef(

const TooltipContent = ({ heading, body }) => (
<Flex column gap={1} {...tooltipStyleProps}>
{heading && (
<TextSmall color="bright" strong>
{heading}
</TextSmall>
)}
{body && <TextSmall color="bright">{body}</TextSmall>}
{heading && <TextSmall strong>{heading}</TextSmall>}
{body && <TextSmall>{body}</TextSmall>}
</Flex>
)

Expand Down
4 changes: 2 additions & 2 deletions src/components/line/legend/dimension.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ const TooltipValue = ({ id, name }) => {

return (
<>
<TextSmall color="bright" strong wordBreak="break-word">
<TextSmall strong wordBreak="break-word">
{name}
</TextSmall>
<TextSmall color="bright" whiteSpace="nowrap">
<TextSmall whiteSpace="nowrap">
{value} {units}
</TextSmall>
</>
Expand Down

0 comments on commit 41fe088

Please sign in to comment.