Skip to content

Continuously zooming in starts throwing errors at some point #2680

@GlennMatthys

Description

@GlennMatthys

Example: https://jsfiddle.net/0rxsx2f9/1/

When continuously zooming in, at some point this error is thrown on the console:
plotly-latest.js:117495 Uncaught RangeError: toFixed() digits argument must be between 0 and 100

It doesn't happen all the time. Usually between 10 to 20 zooms the error starts occurring, I haven't been able to pin down the exact conditions. Once the error occurs, zoom behavior becomes erratic until you reset the graph.

plotly-zoom

Full trace:

plotly-latest.js:117495 Uncaught RangeError: toFixed() digits argument must be between 0 and 100
    at Number.toFixed (<anonymous>)
    at formatTime (plotly-latest.js:117495)
    at Object.exports.formatDate (plotly-latest.js:117532)
    at formatDate (plotly-latest.js:130858)
    at Object.axes.tickText (plotly-latest.js:130789)
    at Object.calcTicks (plotly-latest.js:130404)
    at Object.axes.doTicksSingle (plotly-latest.js:131423)
    at plotly-latest.js:131377
    at Object.lib.syncOrAsync (plotly-latest.js:119125)
    at Object.axes.doTicks (plotly-latest.js:131373)
formatTime @ plotly-latest.js:117495
exports.formatDate @ plotly-latest.js:117532
formatDate @ plotly-latest.js:130858
axes.tickText @ plotly-latest.js:130789
calcTicks @ plotly-latest.js:130404
axes.doTicksSingle @ plotly-latest.js:131423
(anonymous) @ plotly-latest.js:131377
lib.syncOrAsync @ plotly-latest.js:119125
axes.doTicks @ plotly-latest.js:131373
exports.doTicksRelayout @ plotly-latest.js:128394
(anonymous) @ plotly-latest.js:125381
lib.syncOrAsync @ plotly-latest.js:119125
relayout @ plotly-latest.js:125400
exports.call @ plotly-latest.js:153116
(anonymous) @ plotly-latest.js:133760
lib.syncOrAsync @ plotly-latest.js:119125
dragTail @ plotly-latest.js:133758
zoomDone @ plotly-latest.js:133434
onDone @ plotly-latest.js:102144

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions