Lavacharts
class Lavacharts (View source)
Lavacharts - A PHP wrapper library for the Google Chart API
Constants
VERSION |
Lavacharts version
|
Methods
Creates Volcano & Javascript Factory
Magic function to reduce repetitive coding and create aliases.
Create a new ControlWrapper from a Filter
Create a new ChartWrapper from a Chart
Renders Charts or Dashboards into the page
Outputs the link to the Google JSAPI
Checks to see if the given chart or dashboard exists in the volcano storage.
Fetches an existing Chart or Dashboard from the volcano storage.
Details
at line 106
Lavacharts
__construct()
Creates Volcano & Javascript Factory
at line 133
mixed
__call(
string $method,
array $arguments)
Magic function to reduce repetitive coding and create aliases.
at line 174
DataTable
DataTable(
string $timezone = null)
Create a new DataTable
If the additional DataTablePlus package is available, then one will be created, otherwise a standard DataTable is returned.
at line 196
DataTable
Dashboard(
string $label)
Create a new Dashboard
at line 212
ControlWrapper
ControlWrapper(
Filter $filter,
string $elementId)
Create a new ControlWrapper from a Filter
at line 228
ChartWrapper
ChartWrapper(
Chart $chart,
string $elementId)
Create a new ChartWrapper from a Chart
at line 251
string
render(
string $type,
string $label,
string $elementId,
mixed $divDimensions = false)
Renders Charts or Dashboards into the page
Given a type, label, and HTML element id, this will output all of the necessary javascript to generate the chart or dashboard.
at line 338
string
jsapi()
Outputs the link to the Google JSAPI
at line 353
boolean
exists(
string $type,
string $label)
Checks to see if the given chart or dashboard exists in the volcano storage.
at line 374
mixed
fetch(
string $type,
string $label)
Fetches an existing Chart or Dashboard from the volcano storage.