question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Interactive Legend is Unresponsive

See original GitHub issue

Hi,

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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eitanleescommented, May 27, 2020

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)

1reaction
jakevdpcommented, May 22, 2020

It’s probably due to your browser cacheing the old library version.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found