chartjs-ror 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 683304acdfbecea4654d668cf48eb710d376317c
4
- data.tar.gz: 2704a574ec6b3580c9b04e9c2459f0ca7cb743bb
3
+ metadata.gz: f9112aff8cf66fd6af8fd020462b0ae816141f96
4
+ data.tar.gz: 6d8971b9a3e79ff4e8bb51f6e2bef9f217edc02f
5
5
  SHA512:
6
- metadata.gz: e957da90706ff379c3168ee14e8a1127e4b92c583669594ed8f7168f5a5c9b90518f9b521e5e1112f6902abeaa0bfea2a335394c0e2cb27896c69e3aaa22ea19
7
- data.tar.gz: 021382c9d97a00c6a1a80a4734bd400cf04a9015a529d856dbdf9d91d44f1bce5f7df5de8eb7889602175dd690c228a5cb53e1d3ff28e998a6fd313573226d1b
6
+ metadata.gz: e5d56012b55143b05b7095303396a73a52022cf93d598cea297e010c259fab20ee5e87206e18857bc4d20fec932469577382f35185cd15a943d8808f9abccdf7
7
+ data.tar.gz: 28d28629f781cde462f180de0a46d908e2e4da9aca526d7210e208f27226ceb77f08be9c35b1333348ca4ce3eafb909786487a361743bde70011456d0112d912
data/README.md CHANGED
@@ -41,14 +41,15 @@ Each chart type has a corresponding helper for your views. The helper methods t
41
41
 
42
42
 
43
43
  ```erb
44
- <%= line_chart data, options %>
45
- <%= bar_chart data, options %>
46
- <%= radar_chart data, options %>
47
- <%= polar_area_chart data, options %>
48
- <%= pie_chart data, options %>
49
- <%= doughnut_chart data, options %>
50
- <%= bubble_chart data, options %>
51
- <%= scatter_chart data, options %>
44
+ <%= line_chart data, options %>
45
+ <%= bar_chart data, options %>
46
+ <%= horizontal_bar_chart data, options %>
47
+ <%= radar_chart data, options %>
48
+ <%= polar_area_chart data, options %>
49
+ <%= pie_chart data, options %>
50
+ <%= doughnut_chart data, options %>
51
+ <%= bubble_chart data, options %>
52
+ <%= scatter_chart data, options %>
52
53
  ```
53
54
 
54
55
  If you don't want these helpers – perhaps they clash with other methods in your views – add this initializer to your app:
@@ -61,14 +62,15 @@ Chartjs.no_conflict!
61
62
  Then you can use these helpers instead:
62
63
 
63
64
  ```erb
64
- <%= chartjs_line_chart data, options %>
65
- <%= chartjs_bar_chart data, options %>
66
- <%= chartjs_radar_chart data, options %>
67
- <%= chartjs_polar_area_chart data, options %>
68
- <%= chartjs_pie_chart data, options %>
69
- <%= chartjs_doughnut_chart data, options %>
70
- <%= chartjs_bubble_chart data, options %>
71
- <%= chartjs_scatter_chart data, options %>
65
+ <%= chartjs_line_chart data, options %>
66
+ <%= chartjs_bar_chart data, options %>
67
+ <%= chartjs_horizontal_bar_chart data, options %>
68
+ <%= chartjs_radar_chart data, options %>
69
+ <%= chartjs_polar_area_chart data, options %>
70
+ <%= chartjs_pie_chart data, options %>
71
+ <%= chartjs_doughnut_chart data, options %>
72
+ <%= chartjs_bubble_chart data, options %>
73
+ <%= chartjs_scatter_chart data, options %>
72
74
  ```
73
75
 
74
76
  For example, to render a [line chart][linechart] in Javascript:
@@ -1,7 +1,7 @@
1
1
  module Chartjs
2
2
  module ChartHelpers
3
3
 
4
- CHART_TYPES = %w[ bar bubble doughnut line polar_area radar scatter ]
4
+ CHART_TYPES = %w[ bar bubble doughnut horizontal_bar line polar_area radar scatter ]
5
5
 
6
6
  module Explicit
7
7
  CHART_TYPES.each do |type|
@@ -1,3 +1,3 @@
1
1
  module Chartjs
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartjs-ror
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-08 00:00:00.000000000 Z
11
+ date: 2016-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails