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 +4 -4
- data/README.md +18 -16
- data/lib/chartjs/chart_helpers.rb +1 -1
- data/lib/chartjs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9112aff8cf66fd6af8fd020462b0ae816141f96
|
4
|
+
data.tar.gz: 6d8971b9a3e79ff4e8bb51f6e2bef9f217edc02f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
45
|
-
<%= bar_chart
|
46
|
-
<%=
|
47
|
-
<%=
|
48
|
-
<%=
|
49
|
-
<%=
|
50
|
-
<%=
|
51
|
-
<%=
|
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
|
65
|
-
<%= chartjs_bar_chart
|
66
|
-
<%=
|
67
|
-
<%=
|
68
|
-
<%=
|
69
|
-
<%=
|
70
|
-
<%=
|
71
|
-
<%=
|
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:
|
data/lib/chartjs/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|