|
|
|
@ -5,11 +5,12 @@ Consider a call to the plot function:
|
|
|
|
|
|
|
|
|
|
|
|
var plot = $.plot(placeholder, data, options)
|
|
|
|
var plot = $.plot(placeholder, data, options)
|
|
|
|
|
|
|
|
|
|
|
|
The placeholder is a jQuery object that the plot will be put into.
|
|
|
|
The placeholder is a jQuery object or DOM element or jQuery expression
|
|
|
|
This placeholder needs to have its width and height set as explained
|
|
|
|
that the plot will be put into. This placeholder needs to have its
|
|
|
|
in the README (go read that now if you haven't, it's short). The plot
|
|
|
|
width and height set as explained in the README (go read that now if
|
|
|
|
will modify some properties of the placeholder so it's recommended you
|
|
|
|
you haven't, it's short). The plot will modify some properties of the
|
|
|
|
simply pass in a div that you don't use for anything else.
|
|
|
|
placeholder so it's recommended you simply pass in a div that you
|
|
|
|
|
|
|
|
don't use for anything else.
|
|
|
|
|
|
|
|
|
|
|
|
The format of the data is documented below, as is the available
|
|
|
|
The format of the data is documented below, as is the available
|
|
|
|
options. The "plot" object returned has some methods you can call.
|
|
|
|
options. The "plot" object returned has some methods you can call.
|
|
|
|
@ -131,7 +132,7 @@ Customizing the legend
|
|
|
|
margin: number of pixels
|
|
|
|
margin: number of pixels
|
|
|
|
backgroundColor: null or color
|
|
|
|
backgroundColor: null or color
|
|
|
|
backgroundOpacity: number in 0.0 - 1.0
|
|
|
|
backgroundOpacity: number in 0.0 - 1.0
|
|
|
|
container: null or jQuery object
|
|
|
|
container: null or jQuery object/DOM element/jQuery expression
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
The legend is generated as a table with the data series labels and
|
|
|
|
The legend is generated as a table with the data series labels and
|
|
|
|
|