Browse Source

Fix tooltip when scatter plot

pull/183/head
Masayuki Tanaka 11 years ago
parent
commit
0fd30419aa
  1. 6
      c3.js
  2. 2
      c3.min.js

6
c3.js

@ -2843,7 +2843,11 @@
mouse = d3.mouse(this); mouse = d3.mouse(this);
closest = findClosestFromTargets(c3.data.targets, mouse); closest = findClosestFromTargets(c3.data.targets, mouse);
sameXData = filterSameX(c3.data.targets, closest.x); if (isScatterType(closest)) {
sameXData = [closest];
} else {
sameXData = filterSameX(c3.data.targets, closest.x);
}
// show tooltip when cursor is close to some point // show tooltip when cursor is close to some point
selectedData = sameXData.map(function (d) { selectedData = sameXData.map(function (d) {

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save