Skip to content
New issue

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

Ability to add angular/bootstrap tooltips to the nodes #14

Open
abonas opened this issue Dec 23, 2015 · 3 comments
Open

Ability to add angular/bootstrap tooltips to the nodes #14

abonas opened this issue Dec 23, 2015 · 3 comments

Comments

@abonas
Copy link
Contributor

abonas commented Dec 23, 2015

It will be nice to have the ability to add styled tooltips to the nodes instead of the default browser ones.
I tried to follow (in the custom render implementation)
http://jsfiddle.net/9hCDs/1/
http://stackoverflow.com/questions/20399336/how-do-i-use-angularjs-directives-in-generated-d3-html

the attributes are added to the nodes on svg, but the tooltip won't show.

@stefwalter
Copy link
Contributor

I think you would need to use d3 logic, rendered in the SVG rather than angularjs. Example: http://bl.ocks.org/Caged/6476579

@abonas
Copy link
Contributor Author

abonas commented Jan 5, 2016

I think you would need to use d3 logic, rendered in the SVG rather than angularjs. Example: http://bl.ocks.org/Caged/6476579

there are multiple other solutions, I was just looking to do something similar to what I added in the legend, to benefit from the same look and feel.

@abonas
Copy link
Contributor Author

abonas commented Jan 28, 2016

@stefwalter from what I read, there should be a $compile step in order to make angular-ui tooltip work with the angular directive and d3, just unsure where to place it, tried in the custom render function but no success so far.
http://stackoverflow.com/questions/20399336/how-do-i-use-angularjs-directives-in-generated-d3-html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants