app/views/stats/_summary.html.erb
<div class="container">
<%= render 'shared/reportable_stats_table', report: report %>
<div class="mt-5 pb-5 border-bottom">
<h2>Replies By Day</h2>
<%= line_chart report.replies_by_date %>
</div>
<div class="mt-5 pb-5 border-bottom">
<h2>Replies By Month</h2>
<%= column_chart report.replies_by_month %>
</div>
<div class="mt-5 pb-5 border-bottom">
<h2>Replies By Day Of Week</h2>
<%= column_chart report.replies_by_weekday %>
</div>
<div class="mt-5 pb-5 border-bottom">
<h2>Replies By Time Of Day</h2>
<%= column_chart report.replies_by_time_of_day %>
</div>
<% report.countable_questions.each do |question| %>
<div class="mt-5 pb-5">
<h2><%= question.text %></h2>
<%= auto_chart report.answer_occurrence(question) %>
</div>
<div class="pb-5">
<%= data_table report.answer_stats(question) %>
</div>
<% end %>
</div>