PHP Class miloschuman\highcharts\Highcharts

To use this widget, you can insert the following code in a view: php echo \miloschuman\highcharts\Highcharts::widget([ 'options' => [ 'title' => ['text' => 'Fruit Consumption'], 'xAxis' => [ 'categories' => ['Apples', 'Bananas', 'Oranges'] ], 'yAxis' => [ 'title' => ['text' => 'Fruit eaten'] ], 'series' => [ ['name' => 'Jane', 'data' => [1, 0, 4]], ['name' => 'John', 'data' => [5, 7, 3]] ] ] ]); By configuring the {@link $options} property, you may specify the options that need to be passed to the Highcharts JavaScript object. Please refer to the demo gallery and documentation on the {@link https://www.highcharts.com/ Highcharts website} for possible options. Note: You do not need to specify the chart->renderTo option as is shown in many of the examples on the Highcharts website. This value is automatically populated with the id of the widget's container element. If you wish to use a different container, feel free to specify a custom value.
Inheritance: extends yii\base\Widget
Mostrar archivo Open project: miloschuman/yii2-highcharts-widget Class Usage Examples

Public Properties

Property Type Description
$callback
$htmlOptions
$options
$scripts
$setupOptions

Protected Properties

Property Type Description
$baseScript
$constr

Public Methods

Method Description
run ( ) Renders the widget.

Protected Methods

Method Description
registerAssets ( ) Registers required assets and the executing code block with the view

Method Details

registerAssets() protected method

Registers required assets and the executing code block with the view
protected registerAssets ( )

run() public method

Renders the widget.
public run ( )

Property Details

$baseScript protected_oe property

protected $baseScript

$callback public_oe property

public $callback

$constr protected_oe property

protected $constr

$htmlOptions public_oe property

public $htmlOptions

$options public_oe property

public $options

$scripts public_oe property

public $scripts

$setupOptions public_oe property

public $setupOptions