Business intelligence made simple
Fixed bug with scatter charts on dashboards
Andrew Kane028ed17122f9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3cc136dd..50aeb3a3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,3 +1,7 @@+## 1.7.8 [unreleased]++- Fixed bug with scatter charts on dashboards+## 1.7.7- Fixed preview error for MySQLdiff --git a/app/views/blazer/queries/run.html.erb b/app/views/blazer/queries/run.html.erbindex c7fa322f..734979db 100644--- a/app/views/blazer/queries/run.html.erb+++ b/app/views/blazer/queries/run.html.erb@@ -92,7 +92,7 @@<% end %><%= column_chart first_20.group_by { |r| v = r[1]; (@boom[@columns[1]] || {})[v.to_s] || v }.each_with_index.map { |(name, v), i| {name: name, data: v.sort_by { |r2| labels.index(r2[0]) }.map { |v2| v3 = v2[0]; [(@boom[@columns[0]] || {})[v3.to_s] || v3, v2[2]] }} }, id: chart_id %><% elsif chart_type == "scatter" %>- <%= scatter_chart @rows, xtitle: @columns[0], ytitle: @columns[1] %>+ <%= scatter_chart @rows, xtitle: @columns[0], ytitle: @columns[1], id: chart_id %><% elsif @only_chart %><% if @rows.size == 1 && @rows.first.size == 1 %><% v = @rows.first.first %>