admin管理员组文章数量:1287191
/
^ See the sample fiddle above. Notice how the tooltips for the piechart go underneath the "earth" icon I have in the middle there? Is there a way to set the z-index property of the tooltips to be above the earth icon? I thought this would work?
race.tooltip.style.zIndex = "5";
I'm still learning...thank you for your kind help!
http://jsfiddle/gmannib/j2mwpj43/7/
^ See the sample fiddle above. Notice how the tooltips for the piechart go underneath the "earth" icon I have in the middle there? Is there a way to set the z-index property of the tooltips to be above the earth icon? I thought this would work?
race.tooltip.style.zIndex = "5";
I'm still learning...thank you for your kind help!
Share Improve this question asked Aug 21, 2014 at 4:37 user3908735user3908735 752 gold badges2 silver badges5 bronze badges 2- 1 visit this for more info:rgraph/docs/using-tooltips-in-your-charts.html – Suchit kumar Commented Aug 21, 2014 at 5:59
- @suchit i dont think that rgraph's docs apply to chartjs.. Instead look it up here – LuckyLikey Commented Nov 26, 2018 at 12:35
1 Answer
Reset to default 7just give higher z-index
value to your canvas and you are done. See DEMO.
CSS Code
canvas#race{position:relative; z-index:1;}
本文标签: javascriptChartjssetting tooltip zindexStack Overflow
版权声明:本文标题:javascript - Chart.js - setting tooltip z-index - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741307787a2371473.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论