Browse Source

Fix ungrouped tooltip in multiple xs

pull/676/head
Masayuki Tanaka 10 years ago
parent
commit
def0b0278e
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      src/interaction.js

2
c3.js

@ -2313,7 +2313,7 @@
if (! closest) { return; }
if ($$.isScatterType(closest)) {
if ($$.isScatterType(closest) || !config.tooltip_grouped) {
sameXData = [closest];
} else {
sameXData = $$.filterByX(targetsToShow, closest.x);

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
src/interaction.js

@ -261,7 +261,7 @@ c3_chart_internal_fn.generateEventRectsForMultipleXs = function (eventRectEnter)
if (! closest) { return; }
if ($$.isScatterType(closest)) {
if ($$.isScatterType(closest) || !config.tooltip_grouped) {
sameXData = [closest];
} else {
sameXData = $$.filterByX(targetsToShow, closest.x);

Loading…
Cancel
Save