highcharts-rails 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +4 -0
- data/README.markdown +6 -1
- data/lib/highcharts/version.rb +1 -1
- data/vendor/assets/images/highcharts/skies.jpg +0 -0
- data/vendor/assets/javascripts/highcharts.js +490 -238
- data/vendor/assets/javascripts/highcharts/adapters/mootools.js +1 -1
- data/vendor/assets/javascripts/highcharts/adapters/prototype.js +9 -3
- data/vendor/assets/javascripts/highcharts/modules/canvas-tools.js +472 -472
- data/vendor/assets/javascripts/highcharts/modules/exporting.js +9 -6
- data/vendor/assets/javascripts/highcharts/themes/skies.js +89 -0
- metadata +11 -8
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Highcharts JS v2.2.
|
2
|
+
* @license Highcharts JS v2.2.1 (2012-03-15)
|
3
3
|
* Exporting module
|
4
4
|
*
|
5
5
|
* (c) 2010-2011 Torstein Hønsi
|
@@ -270,9 +270,8 @@ extend(Chart.prototype, {
|
|
270
270
|
.replace(/jQuery[0-9]+="[^"]+"/g, '')
|
271
271
|
.replace(/isTracker="[^"]+"/g, '')
|
272
272
|
.replace(/url\([^#]+#/g, 'url(#')
|
273
|
-
|
274
|
-
.replace(/ href
|
275
|
-
.replace(/preserveAspectRatio="none">/g, 'preserveAspectRatio="none"/>')*/
|
273
|
+
.replace(/<svg /, '<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')
|
274
|
+
.replace(/ href=/g, ' xlink:href=')
|
276
275
|
/* This fails in IE < 8
|
277
276
|
.replace(/([0-9]+)\.([0-9]+)/g, function(s1, s2, s3) { // round off to save weight
|
278
277
|
return s2 +'.'+ s3[0];
|
@@ -283,6 +282,10 @@ extend(Chart.prototype, {
|
|
283
282
|
.replace(/­/g, '\u00AD') // soft hyphen
|
284
283
|
|
285
284
|
// IE specific
|
285
|
+
.replace(/<IMG /g, '<image ')
|
286
|
+
.replace(/height=([^" ]+)/g, 'height="$1"')
|
287
|
+
.replace(/width=([^" ]+)/g, 'width="$1"')
|
288
|
+
.replace(/hc-svg-href="([^"]+)">/g, 'xlink:href="$1"/>')
|
286
289
|
.replace(/id=([^" >]+)/g, 'id="$1"')
|
287
290
|
.replace(/class=([^" ]+)/g, 'class="$1"')
|
288
291
|
.replace(/ transform /g, ' ')
|
@@ -603,7 +606,7 @@ extend(Chart.prototype, {
|
|
603
606
|
btnOptions.symbol,
|
604
607
|
btnOptions.symbolX - (symbolSize / 2),
|
605
608
|
btnOptions.symbolY - (symbolSize / 2),
|
606
|
-
symbolSize,
|
609
|
+
symbolSize,
|
607
610
|
symbolSize
|
608
611
|
)
|
609
612
|
.align(btnOptions, true)
|
@@ -656,7 +659,7 @@ function crisp(arr) {
|
|
656
659
|
var i = arr.length;
|
657
660
|
while (i--) {
|
658
661
|
if (typeof arr[i] === 'number') {
|
659
|
-
arr[i] = Math.round(arr[i]) - 0.5;
|
662
|
+
arr[i] = Math.round(arr[i]) - 0.5;
|
660
663
|
}
|
661
664
|
}
|
662
665
|
return arr;
|
@@ -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: '/assets/highcharts/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);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: highcharts-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-15 00:00:00.000000000 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
17
|
-
requirement: &
|
17
|
+
requirement: &70208443559820 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '3.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70208443559820
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: bundler
|
28
|
-
requirement: &
|
28
|
+
requirement: &70208443559320 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 1.0.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70208443559320
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rails
|
39
|
-
requirement: &
|
39
|
+
requirement: &70208443558860 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: '3.1'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70208443558860
|
48
48
|
description: Gem that includes Highcharts (Interactive JavaScript charts for your
|
49
49
|
web projects), in the Rails Asset Pipeline introduced in Rails 3.1
|
50
50
|
email:
|
@@ -54,6 +54,7 @@ extensions: []
|
|
54
54
|
extra_rdoc_files: []
|
55
55
|
files:
|
56
56
|
- .gitignore
|
57
|
+
- CHANGELOG.markdown
|
57
58
|
- Gemfile
|
58
59
|
- LICENSE
|
59
60
|
- README.markdown
|
@@ -62,6 +63,7 @@ files:
|
|
62
63
|
- lib/highcharts-rails.rb
|
63
64
|
- lib/highcharts/rails.rb
|
64
65
|
- lib/highcharts/version.rb
|
66
|
+
- vendor/assets/images/highcharts/skies.jpg
|
65
67
|
- vendor/assets/javascripts/highcharts.js
|
66
68
|
- vendor/assets/javascripts/highcharts/adapters/mootools.js
|
67
69
|
- vendor/assets/javascripts/highcharts/adapters/prototype.js
|
@@ -71,6 +73,7 @@ files:
|
|
71
73
|
- vendor/assets/javascripts/highcharts/themes/dark-green.js
|
72
74
|
- vendor/assets/javascripts/highcharts/themes/gray.js
|
73
75
|
- vendor/assets/javascripts/highcharts/themes/grid.js
|
76
|
+
- vendor/assets/javascripts/highcharts/themes/skies.js
|
74
77
|
has_rdoc: true
|
75
78
|
homepage: http://northblue.org/
|
76
79
|
licenses: []
|