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.

Setting legend.live to false and toggling a series fails

See original GitHub issue

When I attempt to toggle a series after setting legend.live to false, it fails with the following error;

uPlot.esm.js:3743 Uncaught TypeError: Cannot read property 'parentNode' of undefined
    at toggleDOM (uPlot.esm.js:3743)
    at setSeries (uPlot.esm.js:3767)
    at eval (uPlot.esm.js:2411)
    at HTMLTableCellElement.eval (uPlot.esm.js:1041)

I have attempted to call setSeries manually instead of using the legend buttons and I get the same issue.

I am using version 1.6.8 of uPlot.

I’m not doing anything that is wildly out of scope for what uPlot’s capabilities are so I am having trouble creating a reduced test case, but would like to help get this sorted. I wanted to avoid a situation wherein I had to recreate series toggling manually, but after resorting to that and seeing setSeries fail anyway I’m at a loss.

Thanks.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
leeoniyacommented, Apr 28, 2021

pun 💯

1reaction
leeoniyacommented, Apr 28, 2021

no problem. new release should be out by end of this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reasons that ggplot2 legend does not appear - Stack Overflow
\ I currently have a similar problem (that's why I'm here:) ) . I have a plot including multiple geom_line() commands, I would...
Read more >
Python Plotly - How to customize legend? - GeeksforGeeks
In plotly, we can customize the legend by changing order, changing orientation, we can either hide or show the legend and other ...
Read more >
Plot Legend Not Correct - MATLAB Answers - MathWorks
So I have a code and want to plot a couple of features. Long story short, my plot legend is a little confused...
Read more >
Hide Unhide Data Series in Chart on Legend Click | CanvasJS
Set the showInLegend property to false (showInLegend : false) for second, or third data series and try to click on the legend items!...
Read more >
Using the fieldset and legend elements
In this example the question sits above the set of radio buttons, and visually it is clear that the question relates to the...
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