## 制图表组件 highcharts * https://github.com/2amigos/yii2-highcharts-widget * view文件中 ~~~ <?php echo \dosamigos\highcharts\HighCharts::widget([ 'clientOptions' => [ 'chart' => [ 'type' => 'bar' ], '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]] ] ] ]); ?> ~~~