提交 e92ef43c 编写于 作者: B BingBlog 提交者: GitHub

fix the tooltip index error (#60)

上级 536589e4
......@@ -492,7 +492,8 @@ export default {
break;
}
if (item[1] > step) {
nearestItem = series[i - 1];
let index = i - 1;
nearestItem = series[index >= 0 ? index : 0];
break;
}
if (!nearestItem) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册