From f06cab2c387f89e1037aca3669981732e67a9985 Mon Sep 17 00:00:00 2001 From: DanGonite57 Date: Sun, 27 Mar 2022 17:45:22 +0100 Subject: [PATCH] Keep funbox annotation line transparent (#2784) --- frontend/src/scripts/controllers/chart-controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/scripts/controllers/chart-controller.ts b/frontend/src/scripts/controllers/chart-controller.ts index 9209e674c..a701bf85d 100644 --- a/frontend/src/scripts/controllers/chart-controller.ts +++ b/frontend/src/scripts/controllers/chart-controller.ts @@ -770,7 +770,9 @@ export async function updateColors< (chart.options as PluginChartOptions).plugins.annotation .annotations as AnnotationOptions<"line">[] ).forEach((annotation) => { - annotation.borderColor = subcolor; + if (annotation.id !== "funbox-label") { + annotation.borderColor = subcolor; + } (annotation.label as LabelOptions).backgroundColor = subcolor; (annotation.label as LabelOptions).color = bgcolor; });