Skip to content

Business intelligence made simple

Better tooltips for forecast

Andrew Kanec801b1d7aedd
diff --git a/app/views/blazer/queries/run.html.erb b/app/views/blazer/queries/run.html.erb
index df9de795..8e84f63f 100644
--- a/app/views/blazer/queries/run.html.erb
+++ b/app/views/blazer/queries/run.html.erb
@@ -57,7 +57,7 @@
<% elsif ["bar", "bar2"].include?(chart_type) %>
<% chart_options.merge!(library: {tooltips: {intersect: false, axis: 'x'}}) %>
<% elsif chart_type != "pie" %>
- <% if column_types.size == 2 %>
+ <% if column_types.size == 2 || @forecast %>
<% chart_options.merge!(library: {tooltips: {intersect: false, axis: 'x'}}) %>
<% else %>
<%# chartjs axis: 'x' has poor behavior with multiple series %>