Skip to content

Commit

Permalink
v5.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Jan 16, 2025
1 parent d47daf9 commit 0ebaa8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 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.5.4",
"version": "5.5.5",
"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/chartLibraries/dygraph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default (sdk, chart) => {
? 0
: chart.getAttribute("unitsConversionFractionDigits")[0],
yLabelWidth: 12,
yRangePad: 30,
yRangePad: 15,
labelsSeparateLines: true,
rightGap: -5,

Expand Down Expand Up @@ -222,7 +222,7 @@ export default (sdk, chart) => {
let prevMax

const defaultOptions = {
yRangePad: 30,
yRangePad: 15,
strokeWidth: 0.7,
fillAlpha: 0.2,
fillGraph: false,
Expand Down
4 changes: 1 addition & 3 deletions src/chartLibraries/dygraph/tickers/numeric.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export default (a, b, pixels, opts, dygraph, vals, { units } = {}) => {

return [
{ label_v: max - pointHeight, label: anomalySVG },
...ticks.filter(
tick => dygraph.toPercentYCoord(tick.v, 0) < 0.92 && dygraph.toPercentYCoord(tick.v, 0) > 0.08
),
...ticks,
{ label_v: min + pointHeight, label: "" },
]
}

0 comments on commit 0ebaa8d

Please sign in to comment.