You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When min === max the color scale is not able to call ColorScale.getColorForValue() without crash.
The ColorScale.getColorForValue()-method calls ColorPalette.getInterpolatedColor(normalizedValue) which throws the error.
Seems like the interpolation does not handle min equal max, and this provides error when coloring by parameters. Both when calling ColorScale.getColorForValue() directly and ColorScale.getAsPlotlyColorScaleMarkerObject().
Note: Only tested with ColorScaleType.Continuous
An example with test data contains parameters where min == max, and the following gives issue:
The text was updated successfully, but these errors were encountered:
When
min === max
the color scale is not able to callColorScale.getColorForValue()
without crash.The
ColorScale.getColorForValue()
-method callsColorPalette.getInterpolatedColor(normalizedValue)
which throws the error.Seems like the interpolation does not handle min equal max, and this provides error when coloring by parameters. Both when calling
ColorScale.getColorForValue()
directly andColorScale.getAsPlotlyColorScaleMarkerObject()
.Note: Only tested with
ColorScaleType.Continuous
An example with test data contains parameters where min == max, and the following gives issue:
The text was updated successfully, but these errors were encountered: