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

JS errors if new query adds another trace to invisible histogram with Split transform #75

Open
oliver opened this issue Aug 13, 2021 · 0 comments

Comments

@oliver
Copy link

oliver commented Aug 13, 2021

There's a problem which will make the whole plot unresponsive in a (probably very) rare case, due to Javascript errors being thrown:

  • open https://lana-k.github.io/sqliteviz/

  • open both attached test1.csv and test2.csv files (into the same database)

  • import Inquiry from js-bug-try2.json (js-bug.json.gz)

  • run the SQL query (SELECT * FROM "test1") and display the graph. It works fine, and hovering over the two points shows the expected tooltips.

  • change the SQL query to SELECT * FROM "test2", and run it.

    • problem: the graph is not updated; and hovering over the points in the plot shows no tooltips
    • and there are JS errors in console now:
    	Uncaught TypeError: N is undefined
    		S hover.js:308
    		hover hover.js:80
    		l throttle.js:48
    		throttle throttle.js:57
    		hover hover.js:77
    		onmousemove graph_interact.js:67
    	hover.js:308:29
    
  • in legend, click on the "action1 (trace 0)" graph to make it visible. Result: a new graph for action3 is added, and the graph works again.

This happened with sqliteviz version: 0.15.2 .

Thanks for your work on sqliteviz, it is really useful for me! I've used it so much now that I encounter the really rare edge cases ;-)

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

No branches or pull requests

1 participant