Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7625297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:10:24+00:00 2026-05-31T05:10:24+00:00

This may be a bit obscure, but I’m developing a viewer app that chunks

  • 0

This may be a bit obscure, but I’m developing a viewer app that chunks up a large dataset and then allows it to be viewed using dygraphs, where new data chunks are loaded on either side as you pan through it.

The trouble is, when you update the graph as it’s being panned, it seems to lose its y-axis range. You can see this on the dynamic update demo on the official site:

http://dygraphs.com/tests/dynamic-update.html

If you shift-drag to pan, you’ll see the plot (and y-axis) disappear as new data is added. To prove the error, run this in the Chrome console, and you’ll see [ NaN, NaN ] output as the plot disappears:

window.setInterval(function() { console.log(window.g.yAxisRange()); }, 200);

Now, there would be various workarounds involving timers, but ultimately this seems like a bug in the dygraphs library itself. Is there an easy way to patch in a fix? Alternatively, if there’s a way to tell when a pan is in progress, I could simply avoid altering the data set until I know that the user is not in the middle of a pan—but there’s no official callback or flag for this, and it looks like the internal isPanning flag has been carefully hidden on a local-scope context object, where it’s safe from my prying eyes.

What’s the quickest way to patch or monkey-patch this problem?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:10:25+00:00Added an answer on May 31, 2026 at 5:10 am

    This was a bug in dygraphs which is now fixed. If you download the latest version (either from github or dygraphs.com), you’ll no longer have this issue.

    If you want the gory details, here’s the fix:
    https://github.com/danvk/dygraphs/commit/97583b90be3e80c95654d010db8a4b3f8813bb7a

    The panning code was storing data in objects that didn’t belong to it, and when updateOptions() got called, those objects were destroyed and chaos ensued.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may now be a bit fuzzy, but I've been wondering that for a
This may be a bit of daft question, but I don't come from an
This may sound like a bit of a rhetorical question, but I ask it
This may be a matter of style, but there's a bit of a divide
This question may seem a little bit stackoverflow-implementation specific, but I have seen a
This may seem a bit odd, but I really need to create a workaround
I'm sorry this may seem a bit basic, but I can't get my head
This question may seem a bit stupid, but i'm new to Joomla! And i
Okay this one may be a bit out from left field, but I'm going
Ok this question may sound a bit convoluted, or at least esoteric, but I'll

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.