You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
2.0 KiB
Plaintext
50 lines
2.0 KiB
Plaintext
Frequently asked questions
|
|
--------------------------
|
|
|
|
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 or server-side 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.
|