diff --git a/app/helpers/blazer/base_helper.rb b/app/helpers/blazer/base_helper.rb index 0c9bf3e62..05c236360 100644 --- a/app/helpers/blazer/base_helper.rb +++ b/app/helpers/blazer/base_helper.rb @@ -50,7 +50,7 @@ def blazer_format_annotations(annotations) xScaleID: "x-axis-0", xMin: annotation[:min_date], xMax: annotation[:max_date], - backgroundColor: blazer_map_annotation_box_colors(index), + backgroundColor: annotation[:color] || blazer_map_annotation_box_colors(index), } end @@ -61,7 +61,7 @@ def blazer_format_annotations(annotations) value: annotation[:min_date], mode: "vertical", scaleID: "x-axis-0", - borderColor: '#00000050', + borderColor: annotation[:color] || '#00000050', drawTime: "afterDatasetsDraw", label: { content: annotation[:label],