chartkick 3.2.0 → 3.2.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 +4 -0
- data/lib/chartkick/helper.rb +2 -2
- data/lib/chartkick/version.rb +1 -1
- data/vendor/assets/javascripts/chartkick.js +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93ec8731d7c59fefb8a68177487d611056e7b97ad239d71fb40e2fbe3ecb3765
|
4
|
+
data.tar.gz: 188133762bb0f53b70bd5a4bde03f8fef59233affae22f007908b1f9effd7272
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d88b8cd9d7a5afef0a372a52c2b50e6833a445f3824ad14d00645d558546db8c1b3396c6a4c970510404eaa33bbae0bf816a582f77576d065f1e17e7ab5b7e59
|
7
|
+
data.tar.gz: 63bc3b1d692d0fcaff545e326b632fd2f59cc71ff41bf414fa6df2568c7a712b7cdc1a53dd4a50244c5a80bce313c5ef6f37c72e4828f29bfc74be64850e2046
|
data/CHANGELOG.md
CHANGED
data/lib/chartkick/helper.rb
CHANGED
@@ -74,7 +74,7 @@ module Chartkick
|
|
74
74
|
|
75
75
|
# js vars
|
76
76
|
js_vars = {
|
77
|
-
type: klass,
|
77
|
+
type: klass.to_json,
|
78
78
|
id: element_id.to_json,
|
79
79
|
data: data_source.respond_to?(:chart_json) ? data_source.chart_json : data_source.to_json,
|
80
80
|
options: options.to_json
|
@@ -82,7 +82,7 @@ module Chartkick
|
|
82
82
|
js_vars.each_key do |k|
|
83
83
|
js_vars[k] = chartkick_json_escape(js_vars[k])
|
84
84
|
end
|
85
|
-
createjs = "new Chartkick
|
85
|
+
createjs = "new Chartkick[%{type}](%{id}, %{data}, %{options});" % js_vars
|
86
86
|
|
87
87
|
if defer
|
88
88
|
js = <<JS
|
data/lib/chartkick/version.rb
CHANGED
@@ -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
|
-
* v3.1.
|
5
|
+
* v3.1.1
|
6
6
|
* MIT License
|
7
7
|
*/
|
8
8
|
|
@@ -780,7 +780,9 @@
|
|
780
780
|
defaultExport.prototype.renderColumnChart = function renderColumnChart (chart, chartType) {
|
781
781
|
var options;
|
782
782
|
if (chartType === "bar") {
|
783
|
-
|
783
|
+
var barOptions = merge(baseOptions, defaultOptions);
|
784
|
+
delete barOptions.scales.yAxes[0].ticks.maxTicksLimit;
|
785
|
+
options = jsOptionsFunc(barOptions, hideLegend, setTitle, setBarMin, setBarMax, setStacked, setXtitle, setYtitle)(chart, chart.options);
|
784
786
|
} else {
|
785
787
|
options = jsOptions(chart, chart.options);
|
786
788
|
}
|
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: 3.2.
|
4
|
+
version: 3.2.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: 2019-
|
11
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.0.
|
91
|
+
rubygems_version: 3.0.4
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Create beautiful JavaScript charts with one line of Ruby
|