PHP Класс 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.
Наследование: extends yii\base\Widget
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$callback
$htmlOptions
$options
$scripts
$setupOptions

Защищенные свойства (Protected)

Свойство Тип Описание
$baseScript
$constr

Открытые методы

Метод Описание
run ( ) Renders the widget.

Защищенные методы

Метод Описание
registerAssets ( ) Registers required assets and the executing code block with the view

Описание методов

registerAssets() защищенный Метод

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

run() публичный Метод

Renders the widget.
public run ( )

Описание свойств

$baseScript защищенное свойство

protected $baseScript

$callback публичное свойство

public $callback

$constr защищенное свойство

protected $constr

$htmlOptions публичное свойство

public $htmlOptions

$options публичное свойство

public $options

$scripts публичное свойство

public $scripts

$setupOptions публичное свойство

public $setupOptions