PHP Class TbGoogleVisualizationChart

Makes use of the Google Visualization service to render charts
See also: https://developers.google.com/chart/interactive/docs/gallery
Author: : antonio ramirez ([email protected])
Inheritance: extends CWidget
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$containerId string the container Id to render the visualization to
$data array the data to configure visualization
$htmlOptions array
$options array additional configuration options
$visualization string the type of visualization -ie PieChart

Public Methods

Method Description
registerClientScript ( ) Registers required scripts
run ( ) Widget's run method

Method Details

registerClientScript() public method

Registers required scripts

run() public method

Widget's run method
public run ( )

Property Details

$containerId public property

the container Id to render the visualization to
public string $containerId
return string

$data public property

the data to configure visualization
See also: https://google-developers.appspot.com/chart/interactive/docs/datatables_dataviews#arraytodatatable
public array $data
return array

$htmlOptions public property

public array $htmlOptions
return array

$options public property

additional configuration options
See also: https://google-developers.appspot.com/chart/interactive/docs/customizing_charts
public array $options
return array

$visualization public property

the type of visualization -ie PieChart
See also: https://google-developers.appspot.com/chart/interactive/docs/gallery
public string $visualization
return string