higridCharts
public abstract class higridCharts
| Field Summary | |
|---|---|
| mixed | |
| Constructor Summary | |
|---|---|
| void | __construct(mixed db) |
| Method Summary | |
|---|---|
| protected void | convertVar(mixed value, mixed type) |
| protected array | getSQLSerie(string sql, array params, mixed limit, number offset) Return a array representation of the sql query. |
| array | Return all the option for the Chart |
| higridCharts | HCsCO(mixed name, mixed mixvalue) Options regarding the chart area and plot area as well as general chart options. |
| higridCharts | HCsCE(string name, string jscode) Set event listeners for the chart. |
| higridCharts | setColors(array avalue) Set array containing the default colors for the chart's series. |
| higridCharts | setLabels(mixed name, mixed mixvalue) Set HTML labels that can be positioined anywhere in the chart area. |
| higridCharts | setLanguage(mixed name, mixed mixvalue) Set a language object. |
| higridCharts | HCsL(mixed name, mixed mixvalue) Set the legend. |
| higridCharts | setLoading(mixed name, mixed mixvalue) Set the loading options which control the appearance of the loading screen that covers the plot area on chart operations |
| higridCharts | HCsPO(mixed name, array avalue) Set the plot options for the chart. |
| higridCharts | HCsST(mixed name, mixed mixvalue) Set the subtitle of the chart |
| higridCharts | HCsT(mixed name, mixed mixvalue) Set the main title of the chart |
| higridCharts | HCsTT(mixed name, mixed mixvalue) Set options for the tooltip that appears when the user hovers over a series or point |
| higridCharts | HCsX(mixed name, mixed mixvalue) Set the X axis or category axis. |
| higridCharts | HCsY(mixed name, mixed mixvalue) Set the Y axis or value axis. |
| higridCharts | HCsE(mixed name, mixed mixvalue) Set options for the Exporting module |
| higridCharts | setNavigation(mixed name, mixed mixvalue) Set collection of options for buttons and menus appearing in the exporting module. |
| higridCharts | HCaS(string name, mixed value, array params, mixed limit, integer offset) Add a data to the series with a given name. |
| higridCharts | setSeriesOption(string name, mixed option, mixed value) Set a various options for a serie. |
| void | setJSCode(string code) Put a javascript code after all things are created. |
| higridCharts | setTheme(string theme) Set a theme - Can be grid, gray, dark-blue, dark-green |
| string | HCoP(string div_id, boolean createlem, mixed width, Main method which construct the chart based on the options set with the previous methods |
public mixed $version = '2.1'
public void __construct(mixed db)
protected void convertVar(mixed value, mixed type)
protected array getSQLSerie(string sql, array params, mixed limit, number offset)
Return a array representation of the sql query. Also return only the the values of the first column
public array getChartOptions()
Return all the option for the Chart
public higridCharts HCsCO(mixed name, mixed mixvalue)
Options regarding the chart area and plot area as well as general chart options.
public higridCharts HCsCE(string name, string jscode)
Set event listeners for the chart.
public higridCharts setColors(array avalue)
Set array containing the default colors for the chart's series. When all colors are used, new colors are pulled from the start again. Defaults to: array('#4572A7', '#AA4643', '#89A54E', '#80699B', '#3D96AE', '#DB843D', '#92A8CD', '#A47D7C', '#B5CA92')
public higridCharts setLabels(mixed name, mixed mixvalue)
Set HTML labels that can be positioined anywhere in the chart area.
public higridCharts setLanguage(mixed name, mixed mixvalue)
Set a language object. The default language is English. For detailed info on the object rehfer to the documentation
public higridCharts HCsL(mixed name, mixed mixvalue)
Set the legend. The legend is a box containing a symbol and name for each series item or point item in the chart.
public higridCharts setLoading(mixed name, mixed mixvalue)
Set the loading options which control the appearance of the loading screen that covers the plot area on chart operations
public higridCharts HCsPO(mixed name, array avalue)
Set the plot options for the chart. The plotOptions is a wrapper object for config objects for each series type. The config objects for each series can also be overridden for each series item as given in the series array
public higridCharts HCsST(mixed name, mixed mixvalue)
Set the subtitle of the chart
public higridCharts HCsT(mixed name, mixed mixvalue)
Set the main title of the chart
public higridCharts HCsTT(mixed name, mixed mixvalue)
Set options for the tooltip that appears when the user hovers over a series or point
public higridCharts HCsX(mixed name, mixed mixvalue)
Set the X axis or category axis. Normally this is the horizontal axis, though if the chart is inverted this is the vertical axis. In case of multiple axes, the xAxis node is an array of configuration objects.
public higridCharts HCsY(mixed name, mixed mixvalue)
Set the Y axis or value axis. Normally this is the vertical axis, though if the chart is inverted this is the horiontal axis. In case of multiple axes, the yAxis node is an array of configuration objects.
public higridCharts HCsE(mixed name, mixed mixvalue)
Set options for the Exporting module
public higridCharts setNavigation(mixed name, mixed mixvalue)
Set collection of options for buttons and menus appearing in the exporting module.
public higridCharts HCaS(string name, mixed value, array params, mixed limit, integer offset)
Add a data to the series with a given name. If the name exists the data will be overwritten. Data can be added via array, sql query or javascript function
public higridCharts setSeriesOption(string name, mixed option, mixed value)
Set a various options for a serie.
public void setJSCode(string code)
Put a javascript code after all things are created. The method is executed only once when the chart is created.
public higridCharts setTheme(string theme)
Set a theme - Can be grid, gray, dark-blue, dark-green
public string HCoP(string div_id, boolean createlem, mixed width, height, string chart)
Main method which construct the chart based on the options set with the previous methods