Skip to content

Commit

Permalink
Adjust charts annotation ui
Browse files Browse the repository at this point in the history
  • Loading branch information
khasinski committed Sep 24, 2023
1 parent 4751672 commit 04137a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/helpers/blazer/base_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04137a4

Please sign in to comment.