From 04137a4ecd9c2171a9fe9f37093f97639cfefc23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Hasi=C5=84ski?= Date: Fri, 10 Jun 2022 19:35:56 +0200 Subject: [PATCH] Adjust charts annotation ui --- app/helpers/blazer/base_helper.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/helpers/blazer/base_helper.rb b/app/helpers/blazer/base_helper.rb index 97e43d4a8..65bf6d44a 100644 --- a/app/helpers/blazer/base_helper.rb +++ b/app/helpers/blazer/base_helper.rb @@ -57,11 +57,13 @@ def blazer_format_annotations(annotations) value: annotation[:min_date], mode: "vertical", scaleID: "x-axis-0", + borderColor: '#00000050', + drawTime: "afterDatasetsDraw", label: { content: annotation[:label], enabled: true, - position: "top", - yAdjust: (index * 30) % 210, + position: "bottom", + yAdjust: 30 + (index * 30) % 60, }, } end