diff --git a/draftlogs/7002_fix.md b/draftlogs/7002_fix.md new file mode 100644 index 00000000000..a3aeb88f590 --- /dev/null +++ b/draftlogs/7002_fix.md @@ -0,0 +1 @@ + - Fix isosurface maximum value calculation when `isomax` is set to null [[#7002](https://github.com/plotly/plotly.js/pull/7002)] diff --git a/src/traces/isosurface/calc.js b/src/traces/isosurface/calc.js index 8e425d2ab1a..8891b15cc8b 100644 --- a/src/traces/isosurface/calc.js +++ b/src/traces/isosurface/calc.js @@ -35,7 +35,7 @@ module.exports = function calc(gd, trace) { trace._minValues = min; trace._maxValues = max; trace._vMin = (trace.isomin === undefined || trace.isomin === null) ? min : trace.isomin; - trace._vMax = (trace.isomax === undefined || trace.isomin === null) ? max : trace.isomax; + trace._vMax = (trace.isomax === undefined || trace.isomax === null) ? max : trace.isomax; colorscaleCalc(gd, trace, { vals: [trace._vMin, trace._vMax],