Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fea805f

Browse files
antoinemalexisbernard
authored andcommitted
Hide histogram beyond one year
1 parent 57ad49e commit fea805f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/active_analytics/sites/_histogram.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% if histogram.bars.count.between?(2, 31) %>
1+
<% if histogram.bars.count.between?(2, 367) %>
22
<table class="charts-css column show-primary-axis show-5-secondary-axes hide-data <%= "show-labels" if histogram.bars.count < 32 %>" style="height: calc(var(--space-2x) * 8);">
33
<tbody>
44
<% for bar in histogram.bars %>
@@ -19,4 +19,4 @@
1919
<% end %>
2020
</tbody>
2121
</table>
22-
<% end %>
22+
<% end %>

0 commit comments

Comments
 (0)