plotlyjs-ruby 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plotlyjs/version.rb +1 -1
- data/lib/plotlyjs-ruby.rb +9 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11eedef03cecfbf3bf36ace58ada3970b107617d5dd717fdda477775acfa8e37
|
4
|
+
data.tar.gz: bb3256dd8147a96913323821de39b4ce6a57e9c7451b9a1ec69193927c3fb451
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57aec7e1bbd4157074252372607272f5bcf458311c43e2484a9289dbee948d707fdc11caf558c7e5f4d617b404c02c93416b25ad7644a922a044850709e899ed
|
7
|
+
data.tar.gz: e0a1021c304196f097009cfbad65eb65d65c1a5650971bff7e2cd1485ea1aba783b3babcd2deb650b11f48c4925214cf386d5ac02c860b9bb9b35a090b632fbd
|
data/lib/plotlyjs/version.rb
CHANGED
data/lib/plotlyjs-ruby.rb
CHANGED
@@ -33,9 +33,15 @@ module Plotlyjs
|
|
33
33
|
html = <<~HTML
|
34
34
|
<div id="#{element_id}"></div>
|
35
35
|
<script>
|
36
|
-
|
37
|
-
#{createjs}
|
38
|
-
|
36
|
+
(function() {
|
37
|
+
var createChart = function() { #{createjs} };
|
38
|
+
|
39
|
+
if ("Plotly" in window) {
|
40
|
+
createChart();
|
41
|
+
} else {
|
42
|
+
window.addEventListener('load', createChart);
|
43
|
+
};
|
44
|
+
})();
|
39
45
|
</script>
|
40
46
|
HTML
|
41
47
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plotlyjs-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nightswinger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A lightweight and straightforward Ruby wrapper for Plotly.js, enabling
|
14
14
|
developers to create interactive, high-quality data visualizations effortlessly.
|