plotlyjs-ruby 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a197e55c26202f7b93aff2c9685fe4d6a08f2cdfdb2319354edee06d3b3ff205
4
- data.tar.gz: bc4d718037ed01dbb71da967abc0d647f2ecfab73fd46d11dae1162619a2d3ca
3
+ metadata.gz: ef9052b2bae4fd4db64519fdf870d90bd22919f3f79f9e3e27a9e9e8d79dbe45
4
+ data.tar.gz: 53713eef32c9ded13eb0bcffaa375c9f0e7686f0c847d275f7d4893eb940ecb1
5
5
  SHA512:
6
- metadata.gz: c234c6549061049dd5b602b6d648389668b4e0bb80543b53d80b83077dbc1967dba0a936d6778da488e42e185de1628c47e0ce8e6df5fa1aa402968b5a592a4c
7
- data.tar.gz: b35dd982e5653902152675b7fc3f5ef7287d62babfb33dce8bc27d59a73fa42ad42aa56b84c57e5dd8e64c6676637187920e30495321e90dc1ce2696ae0a4baf
6
+ metadata.gz: eabf5989d306f40581f74bca6247d93191e39a2698e5a1ecdddd5b5c72a2200b781ccbd1dce290aef41f24aa263049591dbe909b2e9604a318106cc0e54fcb67
7
+ data.tar.gz: cfb1b5dd3169a80f10118d98d74ade1fec6985ce27c7565d106be876722b3886ab3c7449b486982c1404183b15b58ce8bac29cb10f8529968c53b6be97516cb3
@@ -9,7 +9,7 @@ module Plotlyjs
9
9
  end
10
10
 
11
11
  def to_html
12
- element_id = "plotly-chart-#{self.object_id}"
12
+ element_id = config.delete(:id) ||"plotly-chart-#{self.object_id}"
13
13
 
14
14
  js_vars = {
15
15
  data: data.to_json,
@@ -1,3 +1,3 @@
1
1
  module Plotlyjs
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nightswinger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-02 00:00:00.000000000 Z
11
+ date: 2025-01-07 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.