How to put bootstrap tooltip over SVG elements in

2019-04-16 07:13发布

I want try to put bootstrap tooltip over svg element in angularjs, I am not using d3.js, I simply using angularjs. If you give explanation with example that would be preferable.

标签: angularjs svg
1条回答
女痞
2楼-- · 2019-04-16 07:39

The trick is just to append it to the body instead of the parent element.

I created here an example with UI Bootstrap angular directives.

<svg>
    <circle cx="60" cy="60" r="50" tooltip="Hello world" 
        tooltip-append-to-body="true" tooltip-placement="right"/>
</svg>
查看更多
登录 后发表回答