sangltdn / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

flot on iPhone #273

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello everybody,

I have an issue implementing flot on iPhones!

The $.plot($('#placeholder'), [ d1, d2, d3 ]); everything just like in the
basic.html is giving me the error Invalid dimensions for plot, width = 0,
height = 0

Is it because flot is with jQuery and I don't use jQuery in the rest??

Anybody can give me an solution???

Thank you!

Original issue reported on code.google.com by bontasge...@gmail.com on 9 Dec 2009 at 1:37

GoogleCodeExporter commented 9 years ago
You need to check whether your placeholder actually has a width or height. If 
you set
it (or a parent) to display: none when you call the plot function, then it 
won't work
because it then doesn't have a computable height. Does this help?

Original comment by olau%iol...@gtempaccount.com on 20 Jan 2010 at 3:24

GoogleCodeExporter commented 9 years ago
hey guys I'm thinking about using flot into an iphone application.
will this be possible or you think I will have issues with this ?
Thank you
Paolo

Original comment by teodor...@gmail.com on 3 Feb 2010 at 2:44

GoogleCodeExporter commented 9 years ago
I wanted to test again flot after using google charts! So my issue is because 
my app
is using iUI and because of that I have some troubles executing correctly the 
plot
function! I will still work on it and tell you if (and hopefully how) I solved 
this
issue!

Original comment by bontasge...@gmail.com on 8 Feb 2010 at 11:47

GoogleCodeExporter commented 9 years ago
In my experience, Flot works great on the iPhone.  The only catch is mouse-over 
events don't work and you can't select a range by dragging.

The issue sounds like the placeholder div doesn't have valid dimensions or is 
invisible when the graph is being drawn.

Original comment by tom.pa...@gmail.com on 15 Feb 2010 at 3:35

GoogleCodeExporter commented 9 years ago
OK, going with Tom's advice, I'm going to close this now.

Original comment by olau%iol...@gtempaccount.com on 11 Mar 2011 at 4:48

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:52