class ChartWrapper extends Wrapper (View source)

ChartWrapper Class

Used for wrapping charts to use in dashboards.

Constants

VIZ_CLASS

Javascript chart class.

Methods

__construct( Chart $chart, ElementId $containerId)

Builds a ChartWrapper object.

getContainerId()

Returns the container id.

from  Wrapper
unwrap()

Unwraps and returns the wrapped object.

from  Wrapper
array
jsonSerialize()

Custom serialization of the ChartWrapper.

from  Wrapper
string
toJavascript()

Returns a javascript string with the constructor for the Wrapper.

from  Wrapper

Details

at line 37
__construct( Chart $chart, ElementId $containerId)

Builds a ChartWrapper object.

Parameters

Chart $chart
ElementId $containerId

in Wrapper at line 55
ElementId getContainerId()

Returns the container id.

Return Value

ElementId

in Wrapper at line 65
Chart|Filter unwrap()

Unwraps and returns the wrapped object.

Return Value

Chart|Filter

in Wrapper at line 75
array jsonSerialize()

Custom serialization of the ChartWrapper.

Return Value

array

in Wrapper at line 97
string toJavascript()

Returns a javascript string with the constructor for the Wrapper.

Return Value

string