|
|
|
@ -2271,7 +2271,7 @@
|
|
|
|
|
|
|
|
|
|
// Call event handler
|
|
|
|
|
$$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) { |
|
|
|
|
config.data_onmouseover.call($$, d); |
|
|
|
|
config.data_onmouseover.call($$.api, d); |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.on('mouseout', function (d) { |
|
|
|
@ -2284,7 +2284,7 @@
|
|
|
|
|
$$.unexpandBars(); |
|
|
|
|
// Call event handler
|
|
|
|
|
$$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) { |
|
|
|
|
config.data_onmouseout.call($$, d); |
|
|
|
|
config.data_onmouseout.call($$.api, d); |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.on('mousemove', function (d) { |
|
|
|
@ -2399,7 +2399,7 @@
|
|
|
|
|
closest = $$.findClosestFromTargets(targetsToShow, mouse); |
|
|
|
|
|
|
|
|
|
if ($$.mouseover && (!closest || closest.id !== $$.mouseover.id)) { |
|
|
|
|
config.data_onmouseout.call($$, $$.mouseover); |
|
|
|
|
config.data_onmouseout.call($$.api, $$.mouseover); |
|
|
|
|
$$.mouseover = undefined; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2433,7 +2433,7 @@
|
|
|
|
|
if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < 100) { |
|
|
|
|
$$.svg.select('.' + CLASS.eventRect).style('cursor', 'pointer'); |
|
|
|
|
if (!$$.mouseover) { |
|
|
|
|
config.data_onmouseover.call($$, closest); |
|
|
|
|
config.data_onmouseover.call($$.api, closest); |
|
|
|
|
$$.mouseover = closest; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -4353,6 +4353,7 @@
|
|
|
|
|
// rotate tick text if needed
|
|
|
|
|
if (!config.axis_rotated && config.axis_x_tick_rotate) { |
|
|
|
|
$$.rotateTickText($$.axes.x, transitions.axisX, config.axis_x_tick_rotate); |
|
|
|
|
$$.rotateTickText($$.axes.subx, transitions.axisSubX, config.axis_x_tick_rotate); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -4949,7 +4950,7 @@
|
|
|
|
|
.attr('class', CLASS.dragarea) |
|
|
|
|
.style('opacity', 0.1); |
|
|
|
|
$$.dragging = true; |
|
|
|
|
$$.config.data_ondragstart(); |
|
|
|
|
$$.config.data_ondragstart.call($$.api); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
c3_chart_internal_fn.dragend = function () { |
|
|
|
@ -4963,7 +4964,7 @@
|
|
|
|
|
$$.main.selectAll('.' + CLASS.shape) |
|
|
|
|
.classed(CLASS.INCLUDED, false); |
|
|
|
|
$$.dragging = false; |
|
|
|
|
$$.config.data_ondragend(); |
|
|
|
|
$$.config.data_ondragend.call($$.api); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -5144,11 +5145,6 @@
|
|
|
|
|
// update subchart elements if needed
|
|
|
|
|
if (withSubchart) { |
|
|
|
|
|
|
|
|
|
// rotate tick text if needed
|
|
|
|
|
if (!config.axis_rotated && config.axis_x_tick_rotate) { |
|
|
|
|
$$.rotateTickText($$.axes.subx, transitions.axisSubX, config.axis_x_tick_rotate); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// extent rect
|
|
|
|
|
if (!$$.brush.empty()) { |
|
|
|
|
$$.brush.extent($$.x.orgDomain()).update(); |
|
|
|
|