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.

TypeError when zooming between datapoints

See original GitHub issue

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:

  • v1.0.7
  • v1.0.8
  • Latest master

When trying to zoom in I sometimes encounter:

TypeError: Cannot read property '2' of undefined

Screenshot from the inspector: image

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.

  1. Open LiveDashboard
  2. Click metrics -> VM
  3. Wait for a datapoint (or two) to load
  4. Try zooming in in a space between datapoints

Issue Analytics

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

github_iconTop GitHub Comments

leeoniyacommented, May 24, 2020

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 scales.x.range or returning some fallback min/max in a custom scales.y.range.

hz2018tvcommented, May 25, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

D3 Zooming not working - Stack Overflow
I've created an elevation chart by plotting a separate area for each segment of 3-5 data points. So, I have quite a few...
Read more >
zoom into open-ended regions not working | CanvasJS Charts
To zoom into a certain region, there should be a minimum of 3-4 dataPoints over the axis. Please refer to this forum thread...
Read more >
@syncfusion/ej2-charts - npm
Zooming and panning: Provides options to visualize the data points under any region using rectangular selection, pinch, or mouse wheel zooming.
Read more >
SOLVED - Uncaught TypeError: Cannot read property 'enable ...
I can zoom with scroll wheel but no mouse-click events register on the chart area and the pointer is stuck at a hand...
Read more > — 5.11.0 documentation
In a scatter plot, each row of data_frame is represented by a symbol mark in ... range_color (list of two numbers) – If...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found