Coder Social home page Coder Social logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Would you please try debugging it?

Otherwise please provide a test page to allow someone else to try.

Original comment by olau%[email protected] on 13 Dec 2007 at 6:50

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Here some example:

http://marcis.info/temp/flot/

Original comment by [email protected] on 18 Feb 2008 at 2:35

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
tried the same example with flot 0.4. the same error ;/

Original comment by [email protected] on 13 Mar 2008 at 2:29

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
I went to that page and it casts an exception: "Invalid dimensions for plot, 
width =
0, height = 0". This means that the placeholder object hasn't got the 
dimensions set
at the time where you try to do the plot.

In your case this is probably because the placeholder is hidden (display:none) 
at the
moment you call $.plot. You need to refactor your code to prevent this. I don't 
know
what thickbox is doing so I can't tell what would work best, but a quick fix 
would
perhaps be to just wait a short moment with setTimer().

In short: this is not a Flot bug as the canvas _must_ have its dimensions set 
before
Flot can do anything.

My apologies for it taking so long. I can recommend using the mailing list in 
the
future - in fact there was a discussion today about the same kind of problem. 
It's
available like a web forum with the Google Groups web interface.

Original comment by olau%[email protected] on 13 Mar 2008 at 4:43

  • Changed state: Invalid

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
I did a couple of tests, and I'm beginning to think that the problem isn't that 
the
placeholder is hidden at the moment you call $.plot but rather that the DOM 
isn't
ready yet. It's just a theory, but it might be related to the fact that you 
doing the
plot inside an iframe.

I found this link which might help:

http://ideamill.synaptrixgroup.com/?p=6

Original comment by olau%[email protected] on 14 Mar 2008 at 10:40

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Hm, did some more testing. The results seem to contradict what I just said.

Original comment by olau%[email protected] on 14 Mar 2008 at 12:52

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024

Original comment by [email protected] on 4 Jun 2012 at 2:39

from flot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.