rails_highcharts 0.0.1.beta2 → 0.0.1.beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md
CHANGED
@@ -19,14 +19,14 @@ Rails3.0.8+/Ruby1.8.7+
|
|
19
19
|
|
20
20
|
Usage in Controller:
|
21
21
|
|
22
|
-
@h =
|
22
|
+
@h = RailsHighcharts.new('graph') do |f|
|
23
23
|
f.series(:name=>'John', :data=>[3, 20, 3, 5, 4, 10, 12 ,3, 5,6,7,7,80,9,9])
|
24
24
|
f.series(:name=>'Jane', :data=> [1, 3, 4, 3, 3, 5, 4,-46,7,8,8,9,9,0,0,9] )
|
25
25
|
end
|
26
26
|
|
27
27
|
Without overriding entire option , (only change a specific option index):
|
28
28
|
|
29
|
-
@h =
|
29
|
+
@h = RailsHighcharts.new('graph') do |f|
|
30
30
|
.....
|
31
31
|
f.options[:chart][:defaultSeriesType] = "area"
|
32
32
|
f.options[:chart][:inverted] = true
|
@@ -36,7 +36,7 @@ Without overriding entire option , (only change a specific option index):
|
|
36
36
|
|
37
37
|
Overriding entire option:
|
38
38
|
|
39
|
-
@h =
|
39
|
+
@h = RailsHighcharts.new('graph') do |f|
|
40
40
|
.....
|
41
41
|
f.x_axis(:categories => @days.reverse! , :labels=>{:rotation=>-45 , :align => 'right'})
|
42
42
|
f.chart({:defaultSeriesType=>"spline" , :renderTo => "myRenderArea" , :inverted => true})
|
File without changes
|
data/lib/rails_highcharts.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
require 'rubygems'
|
3
2
|
require 'rails'
|
4
3
|
require 'active_support'
|
5
|
-
require '
|
6
|
-
require '
|
4
|
+
require 'action_pack'
|
5
|
+
require 'action_view'
|
6
|
+
require 'action_controller'
|
7
|
+
require 'action_controller'
|
8
|
+
require 'action_mailer'
|
7
9
|
|
8
|
-
|
9
|
-
require File.expand_path(File.join(File.dirname(__FILE__), '../lib/rails_highcharts/rails_highcharts'))
|
10
10
|
require File.dirname(__FILE__) + "/../app/helpers/rails_highcharts/rails_highcharts_helper"
|
11
|
+
require File.dirname(__FILE__) + "/../app/models/rails_highcharts"
|
11
12
|
|
12
13
|
require 'webrat'
|
13
14
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_highcharts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196397
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
9
|
- 1
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.0.1.
|
11
|
+
- 3
|
12
|
+
version: 0.0.1.beta3
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- AlexZhang
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-07-
|
20
|
+
date: 2011-07-08 00:00:00 +08:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -94,12 +94,12 @@ files:
|
|
94
94
|
- Rakefile
|
95
95
|
- README.md
|
96
96
|
- app/helpers/rails_highcharts/rails_highcharts_helper.rb
|
97
|
+
- app/models/rails_highcharts.rb
|
97
98
|
- lib/generators/rails_highcharts/install_generator.rb
|
98
99
|
- lib/generators/rails_highcharts/media/javascripts/excanvas.compiled.js
|
99
100
|
- lib/generators/rails_highcharts/media/javascripts/highcharts.js
|
100
101
|
- lib/rails_highcharts/engine.rb
|
101
102
|
- lib/rails_highcharts/hash_extend.rb
|
102
|
-
- lib/rails_highcharts/rails_highcharts.rb
|
103
103
|
- lib/rails_highcharts/version.rb
|
104
104
|
- lib/rails_highcharts.rb
|
105
105
|
- spec/rails_highcharts_helper_spec.rb
|