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
chart.tooltip({ showTitle: true, layout: 'v', offsetY: 80, showCrosshairs: false, onChange: function onChange(obj) { var legend = chart.get('legendController').legends.top[0]; var tooltipItems = obj.items; var legendItems = legend.items; var map = {}; legendItems.map(function(item) { map[item.name] = _.clone(item); }); tooltipItems.map(function(item) { var name = item.name; var value = item.value; if (map[name]) { map[name].value = value; } }); legend.setItems(_.values(map)); }, onHide: function onHide() { var legend = chart.get('legendController').legends.top[0]; legend.setItems(chart.getLegendItems().country); } })
利用上面的代码,就可以重现。期望Tooltip 应该在图标上层。
The text was updated successfully, but these errors were encountered:
2b83bb8
Merge pull request #219 from antvis/fix-tooltip
0896ea6
fix: Fix problem with element zIndex in tooltip. Closed #216
simaQ
No branches or pull requests
修改tooltip 函数部分如下
利用上面的代码,就可以重现。期望Tooltip 应该在图标上层。
The text was updated successfully, but these errors were encountered: