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

Extending Badge + CalloutCircle #36

Open
yongpark opened this issue Aug 4, 2017 · 4 comments
Open

Extending Badge + CalloutCircle #36

yongpark opened this issue Aug 4, 2017 · 4 comments

Comments

@yongpark
Copy link

yongpark commented Aug 4, 2017

Hi Susie! First off, amazing D3 module you built out. This is absolutely great. I just had a quick question about extending the badge or CalloutCircle type to combine the features of both. I'd love to have a circle with text inside that can handle a hover/click/action to pop out additional information. Any info pointing me in the right way would be great! Also sorry if this isn't the appropriate place to ask about annotation questions, first time using Github Issues.

@susielu
Copy link
Owner

susielu commented Aug 9, 2017

Hi there, how much text inside the circle do you need to be able to handle? Is it more than one character?

@yongpark
Copy link
Author

yongpark commented Aug 9, 2017 via email

@susielu
Copy link
Owner

susielu commented Aug 18, 2017

So the badge has a radius parameter you could use to fit the 3 character size, then you could wire it up to change to a calloutcircle on hover or on click. These are all of the actions you could add to an annotation: annotation.on() Takes the values 'subjectover', 'subjeout', 'subjectclick', 'connectorover', 'connectout', 'connectorclick', 'noteover', 'noteout', 'notecclick', 'dragend', 'dragstart' as custom dispatch events you can hook into. This block has an example: https://bl.ocks.org/susielu/63269cf8ec84497920f2b7ef1ac85039

Does that make sense?

@yongpark
Copy link
Author

yongpark commented Aug 18, 2017 via email

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