highstock-rails 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +40 -0
- data/Rakefile +1 -0
- data/app/.DS_Store +0 -0
- data/app/assets/.DS_Store +0 -0
- data/app/assets/images/.DS_Store +0 -0
- data/app/assets/images/highstock/skies.jpg +0 -0
- data/app/assets/images/highstock/snow.png +0 -0
- data/app/assets/images/highstock/sun.png +0 -0
- data/app/assets/javascripts/.DS_Store +0 -0
- data/app/assets/javascripts/highstock.js +353 -0
- data/app/assets/javascripts/highstock/.DS_Store +0 -0
- data/app/assets/javascripts/highstock/adapters/.DS_Store +0 -0
- data/app/assets/javascripts/highstock/adapters/mootools-adapter.js +13 -0
- data/app/assets/javascripts/highstock/adapters/prototype-adapter.js +15 -0
- data/app/assets/javascripts/highstock/adapters/standalone-framework.js +17 -0
- data/app/assets/javascripts/highstock/highcharts-more.js +50 -0
- data/app/assets/javascripts/highstock/modules/.DS_Store +0 -0
- data/app/assets/javascripts/highstock/modules/annotations.js +7 -0
- data/app/assets/javascripts/highstock/modules/canvas-tools.js +133 -0
- data/app/assets/javascripts/highstock/modules/data.js +17 -0
- data/app/assets/javascripts/highstock/modules/drilldown.js +11 -0
- data/app/assets/javascripts/highstock/modules/exporting.js +22 -0
- data/app/assets/javascripts/highstock/modules/funnel.js +12 -0
- data/app/assets/javascripts/highstock/modules/heatmap.js +2 -0
- data/app/assets/javascripts/highstock/modules/map.js +32 -0
- data/app/assets/javascripts/highstock/modules/no-data-to-display.js +12 -0
- data/app/assets/javascripts/highstock/themes/dark-blue.js +254 -0
- data/app/assets/javascripts/highstock/themes/dark-green.js +255 -0
- data/app/assets/javascripts/highstock/themes/gray.js +257 -0
- data/app/assets/javascripts/highstock/themes/grid.js +103 -0
- data/app/assets/javascripts/highstock/themes/skies.js +89 -0
- data/highstock-rails.gemspec +25 -0
- data/lib/.DS_Store +0 -0
- data/lib/highstock/.DS_Store +0 -0
- data/lib/highstock/rails.rb +8 -0
- data/lib/highstock/rails/version.rb +5 -0
- metadata +140 -0
@@ -0,0 +1,103 @@
|
|
1
|
+
/**
|
2
|
+
* Grid theme for Highcharts JS
|
3
|
+
* @author Torstein Hønsi
|
4
|
+
*/
|
5
|
+
|
6
|
+
Highcharts.theme = {
|
7
|
+
colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
|
8
|
+
chart: {
|
9
|
+
backgroundColor: {
|
10
|
+
linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
|
11
|
+
stops: [
|
12
|
+
[0, 'rgb(255, 255, 255)'],
|
13
|
+
[1, 'rgb(240, 240, 255)']
|
14
|
+
]
|
15
|
+
},
|
16
|
+
borderWidth: 2,
|
17
|
+
plotBackgroundColor: 'rgba(255, 255, 255, .9)',
|
18
|
+
plotShadow: true,
|
19
|
+
plotBorderWidth: 1
|
20
|
+
},
|
21
|
+
title: {
|
22
|
+
style: {
|
23
|
+
color: '#000',
|
24
|
+
font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
|
25
|
+
}
|
26
|
+
},
|
27
|
+
subtitle: {
|
28
|
+
style: {
|
29
|
+
color: '#666666',
|
30
|
+
font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
|
31
|
+
}
|
32
|
+
},
|
33
|
+
xAxis: {
|
34
|
+
gridLineWidth: 1,
|
35
|
+
lineColor: '#000',
|
36
|
+
tickColor: '#000',
|
37
|
+
labels: {
|
38
|
+
style: {
|
39
|
+
color: '#000',
|
40
|
+
font: '11px Trebuchet MS, Verdana, sans-serif'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
title: {
|
44
|
+
style: {
|
45
|
+
color: '#333',
|
46
|
+
fontWeight: 'bold',
|
47
|
+
fontSize: '12px',
|
48
|
+
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
|
49
|
+
|
50
|
+
}
|
51
|
+
}
|
52
|
+
},
|
53
|
+
yAxis: {
|
54
|
+
minorTickInterval: 'auto',
|
55
|
+
lineColor: '#000',
|
56
|
+
lineWidth: 1,
|
57
|
+
tickWidth: 1,
|
58
|
+
tickColor: '#000',
|
59
|
+
labels: {
|
60
|
+
style: {
|
61
|
+
color: '#000',
|
62
|
+
font: '11px Trebuchet MS, Verdana, sans-serif'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
title: {
|
66
|
+
style: {
|
67
|
+
color: '#333',
|
68
|
+
fontWeight: 'bold',
|
69
|
+
fontSize: '12px',
|
70
|
+
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
},
|
74
|
+
legend: {
|
75
|
+
itemStyle: {
|
76
|
+
font: '9pt Trebuchet MS, Verdana, sans-serif',
|
77
|
+
color: 'black'
|
78
|
+
|
79
|
+
},
|
80
|
+
itemHoverStyle: {
|
81
|
+
color: '#039'
|
82
|
+
},
|
83
|
+
itemHiddenStyle: {
|
84
|
+
color: 'gray'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
labels: {
|
88
|
+
style: {
|
89
|
+
color: '#99b'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
|
93
|
+
navigation: {
|
94
|
+
buttonOptions: {
|
95
|
+
theme: {
|
96
|
+
stroke: '#CCCCCC'
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
};
|
101
|
+
|
102
|
+
// Apply the theme
|
103
|
+
var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
|
@@ -0,0 +1,89 @@
|
|
1
|
+
/**
|
2
|
+
* Skies theme for Highcharts JS
|
3
|
+
* @author Torstein Hønsi
|
4
|
+
*/
|
5
|
+
|
6
|
+
Highcharts.theme = {
|
7
|
+
colors: ["#514F78", "#42A07B", "#9B5E4A", "#72727F", "#1F949A", "#82914E", "#86777F", "#42A07B"],
|
8
|
+
chart: {
|
9
|
+
className: 'skies',
|
10
|
+
borderWidth: 0,
|
11
|
+
plotShadow: true,
|
12
|
+
plotBackgroundImage: 'http://www.highcharts.com/demo/gfx/skies.jpg',
|
13
|
+
plotBackgroundColor: {
|
14
|
+
linearGradient: [0, 0, 250, 500],
|
15
|
+
stops: [
|
16
|
+
[0, 'rgba(255, 255, 255, 1)'],
|
17
|
+
[1, 'rgba(255, 255, 255, 0)']
|
18
|
+
]
|
19
|
+
},
|
20
|
+
plotBorderWidth: 1
|
21
|
+
},
|
22
|
+
title: {
|
23
|
+
style: {
|
24
|
+
color: '#3E576F',
|
25
|
+
font: '16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
26
|
+
}
|
27
|
+
},
|
28
|
+
subtitle: {
|
29
|
+
style: {
|
30
|
+
color: '#6D869F',
|
31
|
+
font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
32
|
+
}
|
33
|
+
},
|
34
|
+
xAxis: {
|
35
|
+
gridLineWidth: 0,
|
36
|
+
lineColor: '#C0D0E0',
|
37
|
+
tickColor: '#C0D0E0',
|
38
|
+
labels: {
|
39
|
+
style: {
|
40
|
+
color: '#666',
|
41
|
+
fontWeight: 'bold'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
title: {
|
45
|
+
style: {
|
46
|
+
color: '#666',
|
47
|
+
font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
48
|
+
}
|
49
|
+
}
|
50
|
+
},
|
51
|
+
yAxis: {
|
52
|
+
alternateGridColor: 'rgba(255, 255, 255, .5)',
|
53
|
+
lineColor: '#C0D0E0',
|
54
|
+
tickColor: '#C0D0E0',
|
55
|
+
tickWidth: 1,
|
56
|
+
labels: {
|
57
|
+
style: {
|
58
|
+
color: '#666',
|
59
|
+
fontWeight: 'bold'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
title: {
|
63
|
+
style: {
|
64
|
+
color: '#666',
|
65
|
+
font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
},
|
69
|
+
legend: {
|
70
|
+
itemStyle: {
|
71
|
+
font: '9pt Trebuchet MS, Verdana, sans-serif',
|
72
|
+
color: '#3E576F'
|
73
|
+
},
|
74
|
+
itemHoverStyle: {
|
75
|
+
color: 'black'
|
76
|
+
},
|
77
|
+
itemHiddenStyle: {
|
78
|
+
color: 'silver'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
labels: {
|
82
|
+
style: {
|
83
|
+
color: '#3E576F'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
};
|
87
|
+
|
88
|
+
// Apply the theme
|
89
|
+
var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'highstock/rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "highstock-rails"
|
8
|
+
spec.version = Highstock::Rails::VERSION
|
9
|
+
spec.authors = ["Justin Kuepper"]
|
10
|
+
spec.email = ["justin.kuepper@gmail.com"]
|
11
|
+
spec.summary = %q{Adds Highstock to Rails Asset Pipeline}
|
12
|
+
spec.description = %q{Adds Highstock to Rails Asset Pipeline}
|
13
|
+
spec.homepage = "http://justinkuepper.me"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "railties", ">= 3.1"
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
23
|
+
spec.add_development_dependency "rake"
|
24
|
+
spec.add_development_dependency "rails", ">= 3.1"
|
25
|
+
end
|
data/lib/.DS_Store
ADDED
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: highstock-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.7
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Justin Kuepper
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.5'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.1'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.1'
|
69
|
+
description: Adds Highstock to Rails Asset Pipeline
|
70
|
+
email:
|
71
|
+
- justin.kuepper@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".DS_Store"
|
77
|
+
- ".gitignore"
|
78
|
+
- Gemfile
|
79
|
+
- LICENSE.txt
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- app/.DS_Store
|
83
|
+
- app/assets/.DS_Store
|
84
|
+
- app/assets/images/.DS_Store
|
85
|
+
- app/assets/images/highstock/skies.jpg
|
86
|
+
- app/assets/images/highstock/snow.png
|
87
|
+
- app/assets/images/highstock/sun.png
|
88
|
+
- app/assets/javascripts/.DS_Store
|
89
|
+
- app/assets/javascripts/highstock.js
|
90
|
+
- app/assets/javascripts/highstock/.DS_Store
|
91
|
+
- app/assets/javascripts/highstock/adapters/.DS_Store
|
92
|
+
- app/assets/javascripts/highstock/adapters/mootools-adapter.js
|
93
|
+
- app/assets/javascripts/highstock/adapters/prototype-adapter.js
|
94
|
+
- app/assets/javascripts/highstock/adapters/standalone-framework.js
|
95
|
+
- app/assets/javascripts/highstock/highcharts-more.js
|
96
|
+
- app/assets/javascripts/highstock/modules/.DS_Store
|
97
|
+
- app/assets/javascripts/highstock/modules/annotations.js
|
98
|
+
- app/assets/javascripts/highstock/modules/canvas-tools.js
|
99
|
+
- app/assets/javascripts/highstock/modules/data.js
|
100
|
+
- app/assets/javascripts/highstock/modules/drilldown.js
|
101
|
+
- app/assets/javascripts/highstock/modules/exporting.js
|
102
|
+
- app/assets/javascripts/highstock/modules/funnel.js
|
103
|
+
- app/assets/javascripts/highstock/modules/heatmap.js
|
104
|
+
- app/assets/javascripts/highstock/modules/map.js
|
105
|
+
- app/assets/javascripts/highstock/modules/no-data-to-display.js
|
106
|
+
- app/assets/javascripts/highstock/themes/dark-blue.js
|
107
|
+
- app/assets/javascripts/highstock/themes/dark-green.js
|
108
|
+
- app/assets/javascripts/highstock/themes/gray.js
|
109
|
+
- app/assets/javascripts/highstock/themes/grid.js
|
110
|
+
- app/assets/javascripts/highstock/themes/skies.js
|
111
|
+
- highstock-rails.gemspec
|
112
|
+
- lib/.DS_Store
|
113
|
+
- lib/highstock/.DS_Store
|
114
|
+
- lib/highstock/rails.rb
|
115
|
+
- lib/highstock/rails/version.rb
|
116
|
+
homepage: http://justinkuepper.me
|
117
|
+
licenses:
|
118
|
+
- MIT
|
119
|
+
metadata: {}
|
120
|
+
post_install_message:
|
121
|
+
rdoc_options: []
|
122
|
+
require_paths:
|
123
|
+
- lib
|
124
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
requirements: []
|
135
|
+
rubyforge_project:
|
136
|
+
rubygems_version: 2.2.1
|
137
|
+
signing_key:
|
138
|
+
specification_version: 4
|
139
|
+
summary: Adds Highstock to Rails Asset Pipeline
|
140
|
+
test_files: []
|