From 1fd4de1b25398954e9ab43e54d0d0fdf1b5cfce0 Mon Sep 17 00:00:00 2001 From: Frank Wuerthwein Date: Sat, 14 Mar 2009 20:01:55 -0400 Subject: flot-0.6pre@147 --- FAQ.txt | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 FAQ.txt (limited to 'FAQ.txt') diff --git a/FAQ.txt b/FAQ.txt new file mode 100644 index 0000000..d70fcc6 --- /dev/null +++ b/FAQ.txt @@ -0,0 +1,58 @@ +Frequently asked questions +-------------------------- + +Q: Flot isn't working when I'm using JSON data as source! + +A: Actually, Flot loves JSON data, you just got the format wrong. +Double check that you're not inputting strings instead of numbers, +like [["0", "-2.13"], ["5", "4.3"]]. This is most common mistake, and +the error might not show up immediately because Javascript can do some +conversion automatically. + + +Q: Can I export the graph? + +A: This is a limitation of the canvas technology. There's a hook in +the canvas object for getting an image out, but you won't get the tick +labels. And it's not likely to be supported by IE. At this point, your +best bet is probably taking a screenshot, e.g. with PrtScn. + + +Q: The bars are all tiny in time mode? + +A: It's not really possible to determine the bar width +automatically. So you have to set the width with the barWidth option +which is NOT in pixels, but in the units of the x axis. For time +mode that's milliseconds so the default value of 1 makes the bars 1 +millisecond wide. + + +Q: Can I use Flot with libraries like Mootools or Prototype? + +A: Yes, Flot supports it out of the box and it's easy! Just use jQuery +instead of $, e.g. call jQuery.plot instead of $.plot and use +jQuery(something) instead of $(something). As a convenience, you can +put in a DOM element for the graph placeholder where the examples and +the API documentation are using jQuery objects. + +Depending on how you include jQuery, you may have to add one line of +code to prevent jQuery from overwriting functions from the other +libraries, see the documentation in jQuery ("Using jQuery with other +libraries") for details. + + +Q: Flot doesn't work with [widget framework xyz]! + +A: The problem is most likely within the framework, or your use of the +framework. + +The only non-standard thing used by Flot is the canvas tag; otherwise +it is simply a series of absolute positioned divs within the +placeholder tag you put in. If this is not working, it's probably +because the framework you're using is doing something weird with the +DOM. As a last resort, you might try replotting and see if it helps. + +If you find there's a specific thing we can do to Flot to help, feel +free to submit a bug report. Otherwise, you're welcome to ask for help +on the mailing list, but please don't submit a bug report to Flot - +try the framework instead. -- cgit v1.2.3