diff --git a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js index 727954b2d02..6e2725ad1cb 100644 --- a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js +++ b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js @@ -844,12 +844,12 @@ function nvd3Vis(element, props) { } chart.yDomain1([ - yAxisBounds[0] || ticks1[0], - yAxisBounds[1] || ticks1[ticks1.length - 1], + yAxisBounds[0] ?? ticks1[0], + yAxisBounds[1] ?? ticks1[ticks1.length - 1], ]); chart.yDomain2([ - yAxis2Bounds[0] || ticks2[0], - yAxis2Bounds[1] || ticks2[ticks2.length - 1], + yAxis2Bounds[0] ?? ticks2[0], + yAxis2Bounds[1] ?? ticks2[ticks2.length - 1], ]); }