Advertisement
citstudio

View Highchart Yii2

Dec 23rd, 2015
729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <?php
  2.     use miloschuman\highcharts\Highcharts;
  3.  
  4.     echo Highcharts::widget([
  5.                 'scripts' => [
  6.                     'highcharts-more',  
  7.                     'modules/exporting',
  8.                     'themes/grid'
  9.                 ],
  10.                 'options' => [
  11.                     'chart'=>[
  12.                         //'renderTo'=>'chartContainer',
  13.                         'type'=>'column',
  14.                         'width'=>'760',
  15.                     ],
  16.                     'title' => ['text' => 'Chart Shift by Month'],
  17.                     'title' => ['text' => 'Chart Shift by Month'],
  18.                     'subtitle'=> ['text'=>'Source  WorldClimate.com'],
  19.                     'xAxis' => [
  20.                         'categories' => $chart_x_axis,
  21.                         'crosshair' => FALSE
  22.                     ],
  23.                     'yAxis' => [
  24.                         'title' => ['text' => NULL]
  25.                     ],
  26.                     'credits' => ['enabled' => FALSE],
  27.                     'dataLabels' => [ 'enabled' => TRUE,],
  28.                     'series' => $chart_x_series,
  29.                 ]
  30.             ]);
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement