BarChart: Fix coloring from thresholds and value mappings (#58285)

This commit is contained in:
Leon Sorokin
2022-11-10 07:43:32 -06:00
committed by GitHub
parent 30f0d66983
commit 778337e522
9 changed files with 1220 additions and 5 deletions
+2 -2
View File
@@ -218,8 +218,8 @@ seqs: [
type: #MappingType & "range"
options: {
// to and from are `number | null` in current ts, really not sure what to do
from: int32 @grafanamaturity(NeedsExpertReview)
to: int32 @grafanamaturity(NeedsExpertReview)
from: float64 @grafanamaturity(NeedsExpertReview)
to: float64 @grafanamaturity(NeedsExpertReview)
result: #ValueMappingResult
}
} @cuetsy(kind="interface") @grafanamaturity(NeedsExpertReview)
+2 -2
View File
@@ -767,14 +767,14 @@ type PanelRepeatDirection string
type RangeMap struct {
Options struct {
// to and from are `number | null` in current ts, really not sure what to do
From int32 `json:"from"`
From float64 `json:"from"`
Result struct {
Color *string `json:"color,omitempty"`
Icon *string `json:"icon,omitempty"`
Index *int32 `json:"index,omitempty"`
Text *string `json:"text,omitempty"`
} `json:"result"`
To int32 `json:"to"`
To float64 `json:"to"`
} `json:"options"`
Type RangeMapType `json:"type"`
}