We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@lifesinger 如题,使用教程里推荐的自定义API:
chart.tooltip(true, { custom: true, // 表示使用自定义的模板显示 tooltip html: '<div class="chart-tooltip" style="position:absolute;visibility: hidden;"><span class="ac-title"></span>:00<table class="ac-list custom-table"></table></div>', // tooltip 的 html 外层模板 itemTpl: '<tr><td>{index}</td><td>{name}:</td><td>{value}元</td></tr>', // 使用 html 时每一个显示项的模板,默认支持 index, color, name, value 这四个字段。 offset: 50, // 偏移量,设置tooltip 显示位置距离 x 轴方向上的偏移 //customFollow: false // 设置 tooltip 是否跟随鼠标移动,默认为 true,跟随。 });
截屏参见如下:
The text was updated successfully, but these errors were encountered:
。。。
Sorry, something went wrong.
自定义的tooltip,确实没有做边距检测。计划后面的版本默认就是html的了,边距检测是必须要做的。
@francis-su 不好意思回复晚了, 你使用 2.0.5 及以上的版本看下,是否还存在这个问题,我们对这个做了优化。
已经修复,但是还有其他团队要求不要限制自定义tooltip的范围,特别是地图场景下,有时候需要稍微远离一下canvas画布。
No branches or pull requests
@lifesinger 如题,使用教程里推荐的自定义API:
截屏参见如下:
The text was updated successfully, but these errors were encountered: