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 remove (hide) legend or other visualization after it has been added #236

Open
drosen0 opened this issue Jul 12, 2016 · 0 comments
Assignees

Comments

@drosen0
Copy link
Contributor

drosen0 commented Jul 12, 2016

Currently the way to do this is by manipulating the SVG (HTML for legend) or CSS.

Contour doesn’t have a defined way to interact with visualizations after they’ve been added. It’s limited to updating the dataset, setting options, and re-rendering. I could see implementing this a couple ways:

a. Add an option specific to the legend like enabled: <bool>. Code to add/remove the legend when enabled is toggled would be within legend's render().

b. Add VisInstanceContainer#setVisibility(<bool>) to toggle visibility on the container. Some visualizations, particularly the legend, add content outside the container. Therefore there would need to be an API for the visualization to listen for this change and add/remove itself.

cc @narenranjit

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

No branches or pull requests

2 participants