vis-timeline icon indicating copy to clipboard operation
vis-timeline copied to clipboard

Cannot zoom out more than 30,000 years / "Something is wrong with the Timeline scale" when zooming out too much

Open phil294 opened this issue 3 years ago • 0 comments

Hi, I copypasted the example from the README, zoomed out to the maximum and got an error. https://jsbin.com/sicayuhine <- Zoom out until you can no more, and you will see:

"Something is wrong with the Timeline scale. Limited drawing of grid lines to 1000 lines."

img

Outside of JS Bin, this error does not occur for some reason, but it does, as soon as you set zoomMax to a high enough value. I think it depends on the screen width. On my system (Linux, Firefox, 1920px width), the error occurs as soon as zoomMax is set to a value of 943_981_714_285_685 (943981714285686) or higher.

In short, it seems to be impossible to zoom out for more than 30,000 years without the timeline going haywire. I wanted to create a timeline that spans several billion years :|

phil294 avatar Feb 18 '22 17:02 phil294