fix: Zero values on Dual Line axis bounds (#23649)

This commit is contained in:
Michael S. Molina
2023-04-14 07:30:16 -03:00
committed by GitHub
parent 240b29220f
commit d66e6e6d40

View File

@@ -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],
]);
}