stat_board 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,16 +2,10 @@
2
2
 
3
3
  <%= javascript_include_tag "stat_board/highcharts" %>
4
4
  <script>
5
- var $container = $("#container")
6
5
  var pointInterval = <%= date_steps.days * 1000 %>;
7
6
  var pointStart = <%= first_day_ever.to_i * 1000 %>;
8
7
 
9
- new Highcharts.Chart({
10
- chart: {
11
- backgroundColor: '#eee',
12
- height: 500,
13
- renderTo: 'container'
14
- },
8
+ Highcharts.chart('container', {
15
9
  title: { text: '' },
16
10
  xAxis: { type: 'datetime' },
17
11
  yAxis: {
@@ -1,12 +1,12 @@
1
1
  <% if StatBoard.models %>
2
- <div class="row">
3
- <%= render :partial => "chart", :collection => @reports, :as => :report %>
4
- </div>
5
-
6
2
  <% if StatBoard.display_graph %>
7
3
  <%= render "graph" %>
8
4
  <% end %>
9
5
 
6
+ <div class="row">
7
+ <%= render :partial => "chart", :collection => @reports, :as => :report %>
8
+ </div>
9
+
10
10
  <% else %>
11
11
  Please specify some models by setting <code>StatBoard.models</code>
12
12
  (in <code>config/initializers/stat_board.rb</code>, for example).
@@ -1,3 +1,3 @@
1
1
  module StatBoard
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stat_board
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Eisinger