绘制图形的语句为
chart = $.jqplot('chart', data, optionsObj);
$.jqplot函数有三个参数,第一个为div的ID,第二个为数据,第三个为绘图选项。
选项对象的结构如下:
jqPlot-|
|-seriesColors(Array)
|-textColor
|-fontFamily
|-fontSize
|-stackSeries
|-series(Array)-|
| |-Series1-|
| | |-lineWidth
| | |-shadow
| | |-showLine
| | |-showMarker
| | |-color
| | |-renderer
| | |-rendererOptions
| | |-trendline
| |-Series2...
| |-...
| |-SeriesN
|
|-grid(Object)-|
| |-drawGridLines
| |-background
| |-borderColor
| |-borderWidth
| |-shadow
|
|-title(Object)-|
| |-text
| |-show
| |-fontFamily
| |-fontSize
| |-textAlign
| |-textColor
|
|-axes(Object)-|
| |-xais-|
| | |-min
| | |-max
| | |-numberTicks
| | |-showTicks
| | |-showTickMarks
| | |-pad
| | |-ticks
| | |-tickOptions
| | |-renderer
| | |-rendererOptions
|
|-legend-|
| |-show
| |-location
|
|-cursor
|
|-dragable
|
|-highlighter
|
| ... and so on
没有评论:
发表评论