From 31ab1cd6315f6515b4a5680b953b14f5477b00ae Mon Sep 17 00:00:00 2001 From: Junfeng Liu Date: Thu, 26 Mar 2015 12:38:56 +0800 Subject: [PATCH] Keep tooltip on redraw and flow, only hide on mouse move out --- c3.js | 5 ----- src/api.flow.js | 2 -- src/core.js | 3 --- 3 files changed, 10 deletions(-) diff --git a/c3.js b/c3.js index 233d1b5..405abb7 100644 --- a/c3.js +++ b/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)); diff --git a/src/api.flow.js b/src/api.flow.js index d8afc19..69b5f50 100644 --- a/src/api.flow.js +++ b/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)); diff --git a/src/core.js b/src/core.js index 5b19c7c..9c9986b 100644 --- a/src/core.js +++ b/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();