Heatmap: Fix color rendering for value ranges < 1 (#68156)
This commit is contained in:
1 parent
0d3a78d86d
commit
1400a0a3f7
1 file changed
+1
-1
@@ -967,7 +967,7 @@ export const boundedMinMax = (
|
||||
};
|
||||
|
||||
export const valuesToFills = (values: number[], palette: string[], minValue: number, maxValue: number) => {
|
||||
let range = Math.max(maxValue - minValue, 1);
|
||||
let range = maxValue - minValue || 1;
|
||||
|
||||
let paletteSize = palette.length;
|
||||
|
||||
|
||||
Reference in new issue
Block a user