From 9c946c41b1909c8f0326a848475c30cc3240160b Mon Sep 17 00:00:00 2001 From: Leon Sorokin Date: Fri, 28 Feb 2025 09:02:35 -0600 Subject: [PATCH] wip --- public/app/plugins/panel/xychart/scatter.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/app/plugins/panel/xychart/scatter.ts b/public/app/plugins/panel/xychart/scatter.ts index 5ef96e4a3af..23ca4db554d 100644 --- a/public/app/plugins/panel/xychart/scatter.ts +++ b/public/app/plugins/panel/xychart/scatter.ts @@ -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 = {