Commit 01f33238 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix tooltip api callback

parent 43f37389
......@@ -6863,13 +6863,13 @@
$$.dispatchEvent('mouseover', index, mouse);
$$.dispatchEvent('mousemove', index, mouse);
this.config.tooltip_onshow.call($$, args.data);
$$.config.tooltip_onshow.call($$, args.data);
};
c3_chart_fn.tooltip.hide = function () {
// TODO: get target data by checking the state of focus
this.internal.dispatchEvent('mouseout', 0);
this.config.tooltip_onhide.call(this);
this.internal.config.tooltip_onhide.call(this);
};
// Features:
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -29,11 +29,11 @@ c3_chart_fn.tooltip.show = function (args) {
$$.dispatchEvent('mouseover', index, mouse);
$$.dispatchEvent('mousemove', index, mouse);
this.config.tooltip_onshow.call($$, args.data);
$$.config.tooltip_onshow.call($$, args.data);
};
c3_chart_fn.tooltip.hide = function () {
// TODO: get target data by checking the state of focus
this.internal.dispatchEvent('mouseout', 0);
this.config.tooltip_onhide.call(this);
this.internal.config.tooltip_onhide.call(this);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment