Method used
Parameters:API Tags:
Return: instance
Access: public
Example:
... $chart = new jqChart(); $chart->setChartOptions(array("defaultSeriesType"=>"line","marginRight"=>130,"marginBottom"=>25)) ->setTitle(array('text'=>'Monthly Average Temperature',"x"=>-20)) ->setSubtitle(array("text"=>"Source: WorldClimate.com","x"=>-20)) ...
| Option name | Type | Default |
|---|---|---|
| align | String | "center" |
| The horizontal alignment of the subtitle. Can be one of "left", "center" and "right". | ||
| floating | Boolean | false |
| When the subtitle is floating, the plot area will not move to make space for it. | ||
| text | String | "" |
| The subtitle of the chart. | ||
| style | Arrray | |
| CSS styles for the title. Exact positioning of the title can be achieved by changing the margin property, or by adding position: "absolute" and left and top properties. | ||
| verticalAlign | String | "top" |
| The vertical alignment of the title. Can be one of "top", "middle" and "bottom". | ||
| x | Number | 0 |
| The x position of the subtitle relative to the alignment within chart.spacingLeft and chart.spacingRight. | ||
| y | Number | 40 |
| The y position of the subtitle relative to the alignment within chart.spacingTop and chart.spacingBottom. | ||