mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-22 15:53:09 +00:00
@@ -578,6 +578,10 @@ export class StatusmapRenderer {
|
||||
if (this.panel.color.mode === 'opacity') {
|
||||
return this.panel.color.cardColor;
|
||||
} else if (this.panel.color.mode === 'spectrum') {
|
||||
if (!bucket.value && this.panel.nullPointMode === 'as zero') {
|
||||
// bucket.value === 0 falls here, but it is fine.
|
||||
return this.colorScale(0);
|
||||
}
|
||||
return this.colorScale(bucket.value);
|
||||
} else if (this.panel.color.mode === 'discrete') {
|
||||
if (this.panel.seriesFilterIndex !== null && this.panel.seriesFilterIndex !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user