phpChart
C_PhpChartX.set_defaults Method
Example  Send Feedback

Sets phpChart default values

Parameters
Parameters 
Description 
default 
phpChart default values 
Returns

None

Description

Sets phpChart default values such as title, font size etc. This method is used for convenience. The default properties are: 

 

options 
description 
data 
user’s data. 
axesDefaults 
default options that will be applied to all axes. 
seriesDefaults 
default options that will be applied to all series. 
series 
Array of series object options. 
axes 
up to 4 axes are supported, each with it’s own options, See Axis for axis specific options. 
grid 
See Grid for grid specific options. 
legend 
see <$.jqplot.TableLegendRenderer> 
seriesColors 
An array of CSS color specifications that will be applied, in order, to the series in the plot. 
sortData 
false to not sort the data passed in by the user. 
fontSize 
css spec for the font-size attribute. 
title 
Title object. 
stackSeries 
true or false, creates a stack or “mountain” plot. 
defaultAxisStart 
1-D data series are internally converted into 2-D [x,y] data point arrays by jqPlot.
 

 

The complete reference to jqplot default properties can be found at http://www.jqplot.com/docs/files/jqplot-core-js.html#jqPlot

Example
See Also
What do you think about this topic? Send feedback!
Copyright (c) 2011. All rights reserved.