Beruflich Dokumente
Kultur Dokumente
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|-textAlign
|
|-textColor
|
|-axes(Object)-|
|
|-xais-|
|
|
|-min
|
|
|-max
|
|
|-numberTicks
|
|
|-showTicks
|
|
|-showTickMarks
|
|
|-pad
|
| ... and so on
> optionsObj = {
>
highlighter:{tooltipFadeSpeed:'slow', tooltipLocation:'n'}
> }
Other plugins, like dragable and trendlines, add their options in with
the series. This is because both of those plugins can have different
options for different series in the plot. So, if you wanted to specify the
color of the dragable and constrain it to drag only on the x axis as well
as specify the color of the trend line you could do:
> series:[{
>
dragable: {
>
color: '#ff3366',
>
constrainTo: 'x'
>
},
>
trendline: {
>
color: '#cccccc'
>
}
> }]
This would apply those options to the first series only. If you had 2 series
and wanted to turn off dragging and trend lines on the second series, you could
do:
> series:[{
>
dragable: {
>
color: '#ff3366',
>
constrainTo: 'x'
>
},
>
trendline: {
>
color: '#cccccc'
>
}
> }, {
>
isDragable: false,
>
trendline:{
>
show: false
>
}
> }]
Note, series dragability is turned off with the "isDragable" option directly on
the series itself, not with a suboption of "dragable". This may be improved
in the future.
I hope this is helpful.
A few key points to remember:
- When you see "this" in the api docs, you generally replace it with
the name of the object (in lowercase) you are looking at in your
options object.
- seriesDefaults and axesDefaults are convenient shortcuts.
- to assign options to a renderer, generally use the "rendererOptions"
- plugins may add their own options attribute, like "highlighter" or
"cursor".
** Note: you can set attributes after the plot is created (like
plot.grid.shadow = false), but you'll have to issue the appropriate
calls to possibly reinitialize and redraw the plot. jqPlot can
definitely handle this to change the plot after creation (this is how
the dragable plugin updates the plot data and the trend line plugin
recomputes itself when data changes). This hasn't been documented
yet, however.