Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add temporal line chart annotations #402

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjust charts annotation ui
khasinski committed Sep 24, 2023
commit 04137a4ecd9c2171a9fe9f37093f97639cfefc23
6 changes: 4 additions & 2 deletions app/helpers/blazer/base_helper.rb
Original file line number Diff line number Diff line change
@@ -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