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
TypeError when zooming between datapoints #234
Comments
y auto-scaling ain't gonna work when there's nothing in the view to scale by. you can either prevent zooming to locations with no datapoints by defining a custom |
Got it, thanks! |
I am getting those errors too sometimes. Shouldnt fixes go into the uplot lib to benefit all or it is up to each individual caller to make such check? works either way for me though. getting more of those errors if I use wheel to zoom in/out. |
if there is a general solution that makes logical sense, has negligible perf impact, and minimal added core complexity, then definitely. |
agree. just from what I saw, it would make sense that the check happen in the uplot lib before zooming happens, then again, I am not versed enough in javascript to make that judgement, majority of my time were spent in the backend with python on data analysis, sometimes on the fromtend webpage for a change and refreshening. |
this specific case was caused by this is now handled by falling back to the highest-available formatter, which will now likely result in identical tick labels rather than an error. in most cases it is still preferable to prevent those ticks from being generated by keeping @hz2018tv i don't know if your situation is related to this, but if you have a repro, i'll certainly take a look. |
updated to the latest repo, havent seen this error so far. actually I am not sure what triggers it, just noticed that using mouse wheel for zooming did it more, and it is hard for user to check data with mouse movement. thanks. |
An error that I've encountered when working on LiveDashboard., but I think it makes more sense to describe it here. :)
Reproduced the error with following versions:
When trying to zoom in I sometimes encounter:
TypeError: Cannot read property '2' of undefined
Screenshot from the inspector:
How to reproduce (with phoenix livedashboard):
As far as I can tell this happens when trying to zoom (by selecting an area with the mouse) and the selected area does not include any datapoints.
The text was updated successfully, but these errors were encountered: