mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Heatmap: Fix color rendering for value ranges < 1 (#68156)
This commit is contained in:
parent
0d3a78d86d
commit
1400a0a3f7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user