highcharts-rails 0.1.1 → 2.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,97 +1,96 @@
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: [0, 0, 500, 500],
11
- stops: [
12
- [0, 'rgb(255, 255, 255)'],
13
- [1, 'rgb(240, 240, 255)']
14
- ]
15
- }
16
- ,
17
- borderWidth: 2,
18
- plotBackgroundColor: 'rgba(255, 255, 255, .9)',
19
- plotShadow: true,
20
- plotBorderWidth: 1
21
- },
22
- title: {
23
- style: {
24
- color: '#000',
25
- font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
26
- }
27
- },
28
- subtitle: {
29
- style: {
30
- color: '#666666',
31
- font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
32
- }
33
- },
34
- xAxis: {
35
- gridLineWidth: 1,
36
- lineColor: '#000',
37
- tickColor: '#000',
38
- labels: {
39
- style: {
40
- color: '#000',
41
- font: '11px Trebuchet MS, Verdana, sans-serif'
42
- }
43
- },
44
- title: {
45
- style: {
46
- color: '#333',
47
- fontWeight: 'bold',
48
- fontSize: '12px',
49
- fontFamily: 'Trebuchet MS, Verdana, sans-serif'
50
-
51
- }
52
- }
53
- },
54
- yAxis: {
55
- minorTickInterval: 'auto',
56
- lineColor: '#000',
57
- lineWidth: 1,
58
- tickWidth: 1,
59
- tickColor: '#000',
60
- labels: {
61
- style: {
62
- color: '#000',
63
- font: '11px Trebuchet MS, Verdana, sans-serif'
64
- }
65
- },
66
- title: {
67
- style: {
68
- color: '#333',
69
- fontWeight: 'bold',
70
- fontSize: '12px',
71
- fontFamily: 'Trebuchet MS, Verdana, sans-serif'
72
- }
73
- }
74
- },
75
- legend: {
76
- itemStyle: {
77
- font: '9pt Trebuchet MS, Verdana, sans-serif',
78
- color: 'black'
79
-
80
- },
81
- itemHoverStyle: {
82
- color: '#039'
83
- },
84
- itemHiddenStyle: {
85
- color: 'gray'
86
- }
87
- },
88
- labels: {
89
- style: {
90
- color: '#99b'
91
- }
92
- }
93
- };
94
-
95
- // Apply the theme
96
- var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
97
-
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: [0, 0, 500, 500],
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
+
94
+ // Apply the theme
95
+ var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
96
+
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: 0.1.1
4
+ version: 2.1.9
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: 2011-10-10 00:00:00.000000000 +02:00
12
+ date: 2011-11-21 00:00:00.000000000 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
17
- requirement: &70095843319540 !ruby/object:Gem::Requirement
17
+ requirement: &70222008063260 !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: *70095843319540
25
+ version_requirements: *70222008063260
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &70095843319040 !ruby/object:Gem::Requirement
28
+ requirement: &70222008062620 !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: *70095843319040
36
+ version_requirements: *70222008062620
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rails
39
- requirement: &70095843318520 !ruby/object:Gem::Requirement
39
+ requirement: &70222008062160 !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: *70095843318520
47
+ version_requirements: *70222008062160
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: