Skip to content

Commit acaf8ed

Browse files
committed
gray color on dashboard with null values
1 parent 23d8f50 commit acaf8ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/clients/Dashboard/src/getColor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ var colorScale = [
2121
];
2222

2323
module.exports = function getColor(v, max, min) {
24+
if(v===0) return '#A4A4A4';
2425
var nbColors = colorScale.length;
2526

2627
if(v <= min)

0 commit comments

Comments
 (0)