chartkick 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of chartkick might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +5 -1
- data/app/assets/javascripts/chartkick.js +13 -5
- data/lib/chartkick/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f267372477ee8ee07e58cfd1d8aa238f46852804
|
4
|
+
data.tar.gz: 9d72a752e72eb9cbc2cbdc5b9a78864f1d889e5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dded5fa96105623a3e52cfc18c6ad73cca64698583388da68df0bf30a2239f0c382c724ffd2a95acdae2207c5bb5db357c8cf8cba54aba88e37a5475efe2fe5
|
7
|
+
data.tar.gz: a71a15aa62707face8f1a3f84ee826e923ba6f6a8f59582e00d921daf0e9fda4930405b0ec214cdd20f3a1a1e9bb2f4e4115db793e65cfad5f537b2d284c0adc
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -51,7 +51,11 @@ Geo chart
|
|
51
51
|
Timeline
|
52
52
|
|
53
53
|
```erb
|
54
|
-
<%= timeline [
|
54
|
+
<%= timeline [
|
55
|
+
["Washington", "1789-04-29", "1797-03-03"],
|
56
|
+
["Adams", "1797-03-03", "1801-03-03"],
|
57
|
+
["Jefferson", "1801-03-03", "1809-03-03"]
|
58
|
+
] %>
|
55
59
|
```
|
56
60
|
|
57
61
|
Multiple series
|
@@ -11,6 +11,7 @@
|
|
11
11
|
(function (window) {
|
12
12
|
'use strict';
|
13
13
|
|
14
|
+
var config = window.Chartkick || {};
|
14
15
|
var Chartkick, ISO8601_PATTERN, DECIMAL_SEPARATOR, adapters = [];
|
15
16
|
|
16
17
|
// helpers
|
@@ -403,11 +404,11 @@
|
|
403
404
|
var loaded = {};
|
404
405
|
var callbacks = [];
|
405
406
|
|
406
|
-
var runCallbacks = function() {
|
407
|
+
var runCallbacks = function () {
|
407
408
|
var cb, call;
|
408
409
|
for (var i = 0; i < callbacks.length; i++) {
|
409
410
|
cb = callbacks[i];
|
410
|
-
call = (cb.pack == "corechart" &&
|
411
|
+
call = google.visualization && ((cb.pack == "corechart" && google.visualization.LineChart) || (cb.pack == "timeline" && google.visualization.Timeline))
|
411
412
|
if (call) {
|
412
413
|
cb.callback();
|
413
414
|
callbacks.splice(i, 1);
|
@@ -416,8 +417,6 @@
|
|
416
417
|
}
|
417
418
|
};
|
418
419
|
|
419
|
-
google.setOnLoadCallback(runCallbacks);
|
420
|
-
|
421
420
|
var waitForLoaded = function (pack, callback) {
|
422
421
|
if (!callback) {
|
423
422
|
callback = pack;
|
@@ -430,7 +429,16 @@
|
|
430
429
|
runCallbacks();
|
431
430
|
} else {
|
432
431
|
loaded[pack] = true;
|
433
|
-
|
432
|
+
|
433
|
+
// https://groups.google.com/forum/#!topic/google-visualization-api/fMKJcyA2yyI
|
434
|
+
var loadOptions = {
|
435
|
+
packages: [pack],
|
436
|
+
callback: runCallbacks
|
437
|
+
};
|
438
|
+
if (config.language) {
|
439
|
+
loadOptions.language = config.language;
|
440
|
+
}
|
441
|
+
google.load("visualization", "1", loadOptions);
|
434
442
|
}
|
435
443
|
};
|
436
444
|
|
data/lib/chartkick/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chartkick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|