Commit 7d91a306 authored by Masayuki Tanaka's avatar Masayuki Tanaka Committed by masayuki

Fix data selection on mouseover

parent 7f5632f0
...@@ -617,8 +617,7 @@ ...@@ -617,8 +617,7 @@
.on('mouseover', function(d,i) { .on('mouseover', function(d,i) {
if (dragging) return // do nothing if dragging if (dragging) return // do nothing if dragging
var selected = main.selectAll('.target-circle-'+i), var selectedData = c3.data.targets.map(function(d){ return d.values[i] });
selectedData = d3.merge(selected.map(function(d){ return d.map(function(d){ return (typeof d !== 'undefined') ? d.__data__ : {} }) }))
var j, newData var j, newData
// Add id,name to selectedData // Add id,name to selectedData
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment