class JavascriptFactory (View source)

Constants

DEBUG

Methods

string
getChartJs( Chart $chart, string $elementId = null)

Checks the Chart for DataTable and builds the Javascript code block

bool
coreJsRendered($stat = false)

True if the lava object and jsapi have been added to the page.

string
getCoreJs()

Builds the javascript lava object for chart interation.

Details

at line 104
string getChartJs( Chart $chart, string $elementId = null)

Checks the Chart for DataTable and builds the Javascript code block

Build the script block for the actual chart and passes it back to output function of the calling chart object. If there are any events defined, they will be automatically be attached to the chart and pulled from the callbacks folder.

Parameters

Chart $chart Chart object to render.
string $elementId HTML element id to output the chart into.

Return Value

string Javascript code block.

Exceptions

DataTableNotFound
InvalidElementId

at line 360
bool coreJsRendered($stat = false)

True if the lava object and jsapi have been added to the page.

Parameters

$stat

Return Value

bool

at line 376
string getCoreJs()

Builds the javascript lava object for chart interation.

Return Value

string Javascript code blocks.