PHP Class WhHighCharts

WhHighCharts is a layer of the amazing {@link http://www.highcharts.com/ Highcharts} To use this widget, you may insert the following code in a view:
$this->widget('yiiwheels.widgets.WhHighCharts', array(
   'options'=>array(
      'title' => array('text' => 'Fruit Consumption'),
      'xAxis' => array(
         'categories' => array('Apples', 'Bananas', 'Oranges')
      ),
      'yAxis' => array(
         'title' => array('text' => 'Fruit eaten')
      ),
      'series' => array(
         array('name' => 'Jane', 'data' => array(1, 0, 4)),
         array('name' => 'John', 'data' => array(5, 7, 3))
      )
   )
));
To find out more about the possible {@link $options} attribute please refer to {@link http://www.hightcharts.com/ Highcharts site}
Author: Antonio Ramirez ([email protected])
Inheritance: extends CWidget
显示文件 Open project: 2amigos/yiiwheels

Public Properties

Property Type Description
$htmlOptions array the HTML tag attributes
$pluginOptions array

Public Methods

Method Description
init ( ) Widget's initialization method
run ( ) Renders the widget.

Protected Methods

Method Description
registerClientScript ( ) Publishes and registers the necessary script files.

Method Details

init() public method

Widget's initialization method
public init ( )

registerClientScript() protected method

Publishes and registers the necessary script files.
protected registerClientScript ( )

run() public method

Renders the widget.
public run ( )

Property Details

$htmlOptions public_oe property

the HTML tag attributes
public array $htmlOptions
return array

$pluginOptions public_oe property

See also: http://api.highcharts.com/highcharts
public array $pluginOptions
return array