Commit ad816135 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix x and index of tooltip.show API - #509

parent f7f56e17
......@@ -6059,10 +6059,10 @@
index = isValue(args.data.index) ? args.data.index : $$.getIndexByX(args.data.x);
}
}
else if (args.x) {
else if (typeof args.x !== 'undefined') {
index = $$.getIndexByX(args.x);
}
else if (args.index) {
else if (typeof args.index !== 'undefined') {
index = args.index;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -18,10 +18,10 @@ c3_chart_fn.tooltip.show = function (args) {
index = isValue(args.data.index) ? args.data.index : $$.getIndexByX(args.data.x);
}
}
else if (args.x) {
else if (typeof args.x !== 'undefined') {
index = $$.getIndexByX(args.x);
}
else if (args.index) {
else if (typeof args.index !== 'undefined') {
index = args.index;
}
......
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