You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 whenenabled
is toggled would be within legend'srender()
.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
The text was updated successfully, but these errors were encountered: