Browse Source

Keep tooltip on redraw and flow, only hide on mouse move out

pull/1080/head
Junfeng Liu 10 years ago
parent
commit
31ab1cd631
  1. 5
      c3.js
  2. 2
      src/api.flow.js
  3. 3
      src/core.js

5
c3.js

@ -575,9 +575,6 @@
$$.subY2.domain($$.getYDomain(targetsToShow, 'y2'));
}
// tooltip
$$.tooltip.style("display", "none");
// xgrid focus
$$.updateXgridFocus();
@ -6236,9 +6233,7 @@
scaleX = (diffDomain(orgDomain) / diffDomain(domain));
transform = 'translate(' + translateX + ',0) scale(' + scaleX + ',1)';
// hide tooltip
$$.hideXGridFocus();
$$.hideTooltip();
d3.transition().ease('linear').duration(durationForFlow).each(function () {
wait.add($$.axes.x.transition().call($$.xAxis));

2
src/api.flow.js

@ -214,9 +214,7 @@ c3_chart_internal_fn.generateFlow = function (args) {
scaleX = (diffDomain(orgDomain) / diffDomain(domain));
transform = 'translate(' + translateX + ',0) scale(' + scaleX + ',1)';
// hide tooltip
$$.hideXGridFocus();
$$.hideTooltip();
d3.transition().ease('linear').duration(durationForFlow).each(function () {
wait.add($$.axes.x.transition().call($$.xAxis));

3
src/core.js

@ -570,9 +570,6 @@ c3_chart_internal_fn.redraw = function (options, transitions) {
$$.subY2.domain($$.getYDomain(targetsToShow, 'y2'));
}
// tooltip
$$.tooltip.style("display", "none");
// xgrid focus
$$.updateXgridFocus();

Loading…
Cancel
Save