Interactive Legend is Unresponsive
See original GitHub issueHi,
I’ve created plots with interactive legends that were working yesterday, but the interactivity appears to be completely unresponsive today.
Running the code in the examples gallery also fails to generate an interactive legend for me locally:
from vega_datasets import data
source = data.unemployment_across_industries.url
selection = alt.selection_multi(fields=['series'], bind='legend')
alt.Chart(source).mark_area().encode(
alt.X('yearmonth(date):T', axis=alt.Axis(domain=False, format='%Y', tickSize=0)),
alt.Y('sum(count):Q', stack='center', axis=None),
alt.Color('series:N', scale=alt.Scale(scheme='category20b')),
opacity=alt.condition(selection, alt.value(1), alt.value(0.2))
).add_selection(
selection
)
For reference I am using Altair version 4.1.0 and working in Jupyter notebook.
Any help would be greatly appreciated!
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Interactive Legend not functioning with multiple layers
I have run into a huge issue though when dealing with multiple feature layers that are symbolized with unique symbols. In the screenshot...
Read more >Python Bokeh - interactive legend hiding glyphs - not working
I try to implement Bokeh interactive legend, to filter the data plotted based on user selection. I need some help to figure out...
Read more >How to turn off the interactive legend... | jQuery Forums
We want the legend, but series should not hide on a legend item click. $(function () {. $("#chart_div").ejChart({. legend: { ...
Read more >Unresponsive Plots - Dash Python
I'm having a reoccurring issue with certain plots inside my dash application. As shown below, certain graphs lose their interactive capabilities ...
Read more >Troubleshoot—ArcGIS Online Help | Documentation
The map legend is different from the legend I created for my feature layer. I can't reorder a layer in the map's contents....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I wanted to make a note about caching issues. I found problems persisted on certain pages even after attempting to clear cached files in chrome. I learned that if you open the developer console and right click on the refresh button, you can select
Empty Cache and Hard Reload
. That has fixed any problems I have encountered so far. (link for more info)It’s probably due to your browser cacheing the old library version.