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 title. Can be one of "left", "center" and "right". | ||
floating | Boolean | false |
When the title is floating, the plot area will not move to make space for it. | ||
text | String | "" |
The title of the chart. | ||
margin | Number | 15 |
The margin between the title and the plot area, or if a subtitle is present, the margin between the subtitle and the plot area. | ||
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 title relative to the alignment within chart.spacingLeft and chart.spacingRight. | ||
y | Number | 25 |
The y position of the title relative to the alignment within chart.spacingTop and chart.spacingBottom. |