Problem using Flot charts on a jQtouch web site
- by hairbymaurice
Hiiii
I have a jQtouch site in dev and i would like to use a chart on it, to me Flot looks like the best way to do this (prettiest!)
However if i implement flot on the site i get the following error:
Invalid dimensions for plot, width = 0, height = 0
If i comment out the style sheet ../jqtouch/jqtouch.min.css the flot chart works just fine.
This i think has something to do with the fact that you cannot use flot inside a div that has display:none
From the Flot readme
Blockquote
Make sure that the
placeholder isn't within something with a display:none CSS property -
in that case, Flot has trouble measuring label dimensions which
results in garbled looks and might have trouble measuring the
placeholder dimensions which is fatal (it'll throw an exception).
Does anyone now if i can work around this/fix this so flot and jQtouch work together?
Thanks
Hairby