Business intelligence made simple
DRY color
Andrew Kaneecbd4095ee57
diff --git a/app/views/blazer/queries/run.html.erb b/app/views/blazer/queries/run.html.erbindex 2b159361..cb547af7 100644--- a/app/views/blazer/queries/run.html.erb+++ b/app/views/blazer/queries/run.html.erb@@ -67,7 +67,8 @@<% series_library = {} %><% target_index = @columns.index { |k| k.downcase == "target" } %><% if target_index %>- <% series_library[target_index - 1] = {pointStyle: "line", hitRadius: 5, borderColor: "#109618", pointBackgroundColor: "#109618", backgroundColor: "#109618"} %>+ <% color = "#109618" %>+ <% series_library[target_index - 1] = {pointStyle: "line", hitRadius: 5, borderColor: color, pointBackgroundColor: color, backgroundColor: color, pointHoverBackgroundColor: color} %><% end %><% if @forecast %><% color = "#54a3ee" %>