vega 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/vega/base_chart.rb +1 -0
- data/lib/vega/spec.rb +2 -2
- data/lib/vega/version.rb +1 -1
- data/vendor/assets/javascripts/vega-embed.js +862 -1160
- data/vendor/assets/javascripts/vega-lite.js +1545 -3703
- 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: 910224c90daca83128bd03303309f86e84a5ddd709db65630c2b9bf7948e0c7c
|
4
|
+
data.tar.gz: 7f8773556565b0ddaab7668e41f38cd9fa1a88cea51e4199e4997494340cfb6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b73aa8eeb149fe75bfeb2edfb316de4ba209be855a7b1ad0200da13cf97a9ef365ed8ea5d590e734a071fde51c3bfc10d122a28002a9d70a62fccdd563d9230
|
7
|
+
data.tar.gz: 175848178fa7ade33c0a1401037fce8c2abb1f164bb3f820f27fd69ecb4e2742adfd67177044fde6928e21d23db02d783cb9eb16b1a83360ee1058b38d2b12dd
|
data/CHANGELOG.md
CHANGED
data/lib/vega/base_chart.rb
CHANGED
@@ -45,6 +45,7 @@ module Vega
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def data_value(value)
|
48
|
+
value = value.rows(named: true) if defined?(Polars::DataFrame) && value.is_a?(Polars::DataFrame)
|
48
49
|
value = value.to_a if defined?(Rover::DataFrame) && value.is_a?(Rover::DataFrame)
|
49
50
|
value = value.to_a[0] if defined?(Daru::DataFrame) && value.is_a?(Daru::DataFrame)
|
50
51
|
case value
|
data/lib/vega/spec.rb
CHANGED
@@ -36,8 +36,8 @@ module Vega
|
|
36
36
|
paths: {
|
37
37
|
'vega': 'https://cdn.jsdelivr.net/npm/vega@5.22.1/build/vega.min',
|
38
38
|
'vega-util': 'https://cdn.jsdelivr.net/npm/vega-util@1.17.0/build/vega-util.min',
|
39
|
-
'vega-lite': 'https://cdn.jsdelivr.net/npm/vega-lite@5.6.
|
40
|
-
'vega-embed': 'https://cdn.jsdelivr.net/npm/vega-embed@6.21.
|
39
|
+
'vega-lite': 'https://cdn.jsdelivr.net/npm/vega-lite@5.6.1/build/vega-lite.min',
|
40
|
+
'vega-embed': 'https://cdn.jsdelivr.net/npm/vega-embed@6.21.3/build/vega-embed.min'
|
41
41
|
}
|
42
42
|
});
|
43
43
|
require(['vega', 'vega-util', 'vega-lite', 'vega-embed'], function(vega, vegaUtil, vegaLite, vegaEmbed) {
|
data/lib/vega/version.rb
CHANGED