highcharts-js-rails 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/highcharts-js-rails.gemspec +1 -1
- data/vendor/assets/javascripts/adapters/mootools.js +10 -1
- data/vendor/assets/javascripts/adapters/prototype.js +7 -3
- data/vendor/assets/javascripts/highcharts.js +581 -484
- data/vendor/assets/javascripts/modules/canvas-tools.js +472 -472
- data/vendor/assets/javascripts/modules/exporting.js +7 -4
- metadata +38 -13
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license
|
2
|
+
* @license @product.name@ JS v@product.version@ (@product.date@)
|
3
3
|
* Exporting module
|
4
4
|
*
|
5
5
|
* (c) 2010-2011 Torstein Hønsi
|
@@ -272,6 +272,8 @@ extend(Chart.prototype, {
|
|
272
272
|
.replace(/url\([^#]+#/g, 'url(#')
|
273
273
|
.replace(/<svg /, '<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')
|
274
274
|
.replace(/ href=/g, ' xlink:href=')
|
275
|
+
.replace(/\n/, ' ')
|
276
|
+
.replace(/<\/svg>.*?$/, '</svg>') // any HTML added to the container after the SVG (#894)
|
275
277
|
/* This fails in IE < 8
|
276
278
|
.replace(/([0-9]+)\.([0-9]+)/g, function(s1, s2, s3) { // round off to save weight
|
277
279
|
return s2 +'.'+ s3[0];
|
@@ -320,7 +322,8 @@ extend(Chart.prototype, {
|
|
320
322
|
// create the form
|
321
323
|
form = createElement('form', {
|
322
324
|
method: 'post',
|
323
|
-
action: options.url
|
325
|
+
action: options.url,
|
326
|
+
enctype: 'multipart/form-data'
|
324
327
|
}, {
|
325
328
|
display: NONE
|
326
329
|
}, doc.body);
|
@@ -606,7 +609,7 @@ extend(Chart.prototype, {
|
|
606
609
|
btnOptions.symbol,
|
607
610
|
btnOptions.symbolX - (symbolSize / 2),
|
608
611
|
btnOptions.symbolY - (symbolSize / 2),
|
609
|
-
symbolSize,
|
612
|
+
symbolSize,
|
610
613
|
symbolSize
|
611
614
|
)
|
612
615
|
.align(btnOptions, true)
|
@@ -659,7 +662,7 @@ function crisp(arr) {
|
|
659
662
|
var i = arr.length;
|
660
663
|
while (i--) {
|
661
664
|
if (typeof arr[i] === 'number') {
|
662
|
-
arr[i] = Math.round(arr[i]) - 0.5;
|
665
|
+
arr[i] = Math.round(arr[i]) - 0.5;
|
663
666
|
}
|
664
667
|
}
|
665
668
|
return arr;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: highcharts-js-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.1'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: bundler
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: rake
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: '0'
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: rspec
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ! '>='
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: '0'
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: simplecov
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ! '>='
|
@@ -65,7 +85,12 @@ dependencies:
|
|
65
85
|
version: '0'
|
66
86
|
type: :development
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
69
94
|
description: Easily configure a Highcharts JS chart for use in a Rails application
|
70
95
|
email:
|
71
96
|
- agrobbin@gmail.com
|
@@ -141,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
166
|
version: '0'
|
142
167
|
requirements: []
|
143
168
|
rubyforge_project: highcharts-js-rails
|
144
|
-
rubygems_version: 1.8.
|
169
|
+
rubygems_version: 1.8.23
|
145
170
|
signing_key:
|
146
171
|
specification_version: 3
|
147
172
|
summary: Easily configure a Highcharts JS chart for use in a Rails application
|