Browse Source

Add interaction.enabled option - #215

pull/232/merge
Masayuki Tanaka 11 years ago
parent
commit
7b65334454
  1. 4
      c3.js
  2. 6
      c3.min.js

4
c3.js

@ -118,6 +118,8 @@
__zoom_extent = getConfig(['zoom', 'extent']),
__zoom_privileged = getConfig(['zoom', 'privileged'], false);
var __interaction_enabled = getConfig(['interaction', 'enabled'], true);
var __onenter = getConfig(['onenter'], function () {}),
__onleave = getConfig(['onleave'], function () {}),
__onresize = getConfig(['onresize'], function () {}),
@ -3494,6 +3496,7 @@
.attr("cx", __axis_rotated ? circleY : circleX)
.attr("cy", __axis_rotated ? circleX : circleY);
if (__interaction_enabled) {
// rect for mouseover
eventRect = main.select('.' + CLASS.eventRects);
if (notEmpty(__data_xs) && !isSingleX(__data_xs)) {
@ -3555,6 +3558,7 @@
// exit
eventRectUpdate.exit().remove();
}
}
// update fadein condition
mapToIds(c3.data.targets).forEach(function (id) {

6
c3.min.js vendored

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