Lavacharts
class Lavacharts (View source)
Properties
Volcano | $volcano | Holds all of the defined Charts and DataTables. | |
JavascriptFactory | $jsFactory | Javascript factory class for lava.js and chart js |
Methods
__construct()
Creates Volcano & Javascript Factory
mixed
__call(
string $member,
array $arguments)
Magic function to reduce repetitive coding and create aliases.
string
render(
string $chartType,
string $chartLabel,
string $elementId,
mixed $divDimensions = false)
Renders the chart into the page
string
jsapi()
Outputs the link to the Google JSAPI
string
exists($type, $label)
Checks to see if the given chart type and title exists in the volcano storage.
Details
at line 114
__construct()
Creates Volcano & Javascript Factory
at line 141
mixed
__call(
string $member,
array $arguments)
Magic function to reduce repetitive coding and create aliases.
at line 222
string
render(
string $chartType,
string $chartLabel,
string $elementId,
mixed $divDimensions = false)
Renders the chart into the page
Given a chart label and an HTML element id, this will output all of the necessary javascript to generate the chart.
at line 250
string
jsapi()
Outputs the link to the Google JSAPI
at line 265
string
exists($type, $label)
Checks to see if the given chart type and title exists in the volcano storage.