chartkick 4.0.5 → 4.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +99 -33
- data/lib/chartkick/engine.rb +8 -0
- data/lib/chartkick/helper.rb +1 -0
- data/lib/chartkick/version.rb +1 -1
- data/licenses/LICENSE-date-fns.txt +21 -20
- data/vendor/assets/javascripts/Chart.bundle.js +3073 -2478
- data/vendor/assets/javascripts/chartkick.js +8 -5
- metadata +3 -3
@@ -2,7 +2,7 @@
|
|
2
2
|
* Chartkick.js
|
3
3
|
* Create beautiful charts with one line of JavaScript
|
4
4
|
* https://github.com/ankane/chartkick.js
|
5
|
-
* v4.
|
5
|
+
* v4.1.1
|
6
6
|
* MIT License
|
7
7
|
*/
|
8
8
|
|
@@ -748,17 +748,17 @@
|
|
748
748
|
|
749
749
|
if (chart.xtype === "datetime") {
|
750
750
|
if (notnull(xmin)) {
|
751
|
-
options.scales.x.
|
751
|
+
options.scales.x.min = toDate(xmin).getTime();
|
752
752
|
}
|
753
753
|
if (notnull(xmax)) {
|
754
|
-
options.scales.x.
|
754
|
+
options.scales.x.max = toDate(xmax).getTime();
|
755
755
|
}
|
756
756
|
} else if (chart.xtype === "number") {
|
757
757
|
if (notnull(xmin)) {
|
758
|
-
options.scales.x.
|
758
|
+
options.scales.x.min = xmin;
|
759
759
|
}
|
760
760
|
if (notnull(xmax)) {
|
761
|
-
options.scales.x.
|
761
|
+
options.scales.x.max = xmax;
|
762
762
|
}
|
763
763
|
}
|
764
764
|
|
@@ -2495,6 +2495,9 @@
|
|
2495
2495
|
document.addEventListener("turbolinks:before-render", function() {
|
2496
2496
|
Chartkick.destroyAll();
|
2497
2497
|
});
|
2498
|
+
document.addEventListener("turbo:before-render", function() {
|
2499
|
+
Chartkick.destroyAll();
|
2500
|
+
});
|
2498
2501
|
|
2499
2502
|
// use setTimeout so charting library can come later in same JS file
|
2500
2503
|
setTimeout(function() {
|
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: 4.
|
4
|
+
version: 4.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: andrew@ankane.org
|
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
50
|
- !ruby/object:Gem::Version
|
51
51
|
version: '0'
|
52
52
|
requirements: []
|
53
|
-
rubygems_version: 3.
|
53
|
+
rubygems_version: 3.3.3
|
54
54
|
signing_key:
|
55
55
|
specification_version: 4
|
56
56
|
summary: Create beautiful JavaScript charts with one line of Ruby
|