simple_drilldown 0.9.3 → 0.9.4

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: 787eb533d80540491493c1fb623d8358b72974059b007a838fe3f41c39f2314c
4
- data.tar.gz: 284a49c988fe530ac7e64840ba2162c5afb4424217570905618f7595d2328d2b
3
+ metadata.gz: a9258ecdeb91deb6d4a17a1a23e28f1e0e9cbf243588d9f40e057f93f16c0892
4
+ data.tar.gz: 5a6e71f4400c9259fe90a04420372adfd29982bede1aec6968d06050c44de9cf
5
5
  SHA512:
6
- metadata.gz: b381290a734b9b701d4d33c86fb21e9ac7a6e9ccf5cae8b4c0263bccc5d80e8e155262cd916f6373d40b53732a1272c2d1c3b7bf8733b3d1d1744bbe7e797850
7
- data.tar.gz: cc8569627e64cc18618d26f8e0036d22cfd79b31c6e5ad4752db8fe663c0f9053fb6fff3376e526e20e6d562379156c57d604992b85e076486cee9e7fd5342e2
6
+ metadata.gz: c84bcd765bdb3a7fd29a67a2401849ca065505ec888b0691f6a3b3b79cd94ad5db7a8a28a12b575f6ab6675e328209e7aaa0c13b43c52f65fe227312efaf2e41
7
+ data.tar.gz: b87a85a90e3843d4deed1aa9725e914622073e77cfdf02db5e771912bd457812a846298f171d4673ee9d6cdcf9154bd661c6a2cd651231503de227fef1422f52
@@ -68,10 +68,10 @@
68
68
  <%= javascript_tag do %>
69
69
  $('#chart-1').on('click', function(e){
70
70
  chart = Chartkick.charts['chart-1'].getChartObject();
71
- firstPoint = chart.getElementsAtEvent(e)[0]
71
+ firstPoint = chart.getElementsAtEventForMode(e, 'nearest', { intersect: true }, false)[0]
72
72
  if (firstPoint) {
73
- label = chart.data.labels[firstPoint._index];
74
- value = chart.data.datasets[firstPoint._datasetIndex].data[firstPoint._index];
73
+ label = chart.data.labels[firstPoint.index];
74
+ value = chart.data.datasets[firstPoint.datasetIndex].data[firstPoint._index];
75
75
  console.log("Label: " + label + ", Value: " + value);
76
76
  new_location = window.location.toString();
77
77
  new_location = new_location.replace(/#.*$/, '');
@@ -1,3 +1,3 @@
1
1
  module SimpleDrilldown
2
- VERSION = '0.9.3'
2
+ VERSION = '0.9.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_drilldown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uwe Kubosch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-20 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caxlsx_rails