mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-22 15:53:09 +00:00
colored tooltip for discrete mode
- fix multiple values notes - fix legend padding
This commit is contained in:
@@ -16,7 +16,10 @@ export class ColorModeDiscrete {
|
||||
for (let i = 0; i < thresholds.length; i++) {
|
||||
for (let j = 0; j < values.length; j++) {
|
||||
if (values[j] == thresholds[i].value) {
|
||||
tooltips.push(thresholds[i].tooltip);
|
||||
tooltips.push({
|
||||
"tooltip": thresholds[i].tooltip,
|
||||
"color": thresholds[i].color
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user