From d66e6e6d400db0fee35d73cd43e610cd1c491f4b Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Fri, 14 Apr 2023 07:30:16 -0300 Subject: [PATCH] fix: Zero values on Dual Line axis bounds (#23649) --- .../plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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], ]); }