Skip to content

Commit

Permalink
Heatmap: Fix color rendering for value ranges < 1 (#68156)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeoniya authored and ryantxu committed May 11, 2023
1 parent 83605c4 commit 3aaf974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/app/plugins/panel/heatmap/utils.ts
Expand Up @@ -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;

Expand Down

0 comments on commit 3aaf974

Please sign in to comment.