This commit is contained in:
Leon Sorokin
2025-02-28 09:02:35 -06:00
parent 34d6434785
commit 9c946c41b1
@@ -587,6 +587,12 @@ function getLabelForRange(from: number | null, to: number | null) {
return text;
}
// percent enum configs can be combined, percent threasholds are global across multi frames and fields
// classic palette by value
// get and getAll, should accept shared min/max to scale percentage
// merge enums for legend by combo of color+icon+text
// auto-threshold by % into 10 bukkits?
/** compiler for values to palette color idxs (from thresholds, mappings, by-value gradients) */
export function getEnumConfig(f: Field, theme: GrafanaTheme2): FieldColorValues {
const index: EnumFieldConfig = {