大师们,当我使用YII和高图时,我遇到了问题。我想显示计量表,但它不会出现
我正在使用highchart v.3.x.x
$this->Widget('ext.highcharts.HighchartsWidget',
array(
'options'=>array(
'chart' => array('type' => 'gauge', 'plotBorderWidth' => 0, 'plotShadow' => false),
'title' => array('text' => 'Jumlah Total Rekrutment'),
'pane' => array('startAngle' => -150, 'endAngle' => 150),
'yAxis' => array(
// 'title' => array('text' => 'Jumlah'),
'min' => array(0),
'max' => array(250),
'minorTickInterval' => array('auto'),
'minorTickWidth' => array(250),
'minorTickLength' => array(10),
'minorTickPosition' => array('inside'),
'minorTickColor' => array('#666'),
'tickPixelInterval' => array(30),
'tickWidth' => array(2),
'tickPosition' => array('inside'),
'tickLength' => array(10),
'tickColor' => array('#666'),
'labels' => array('step'=>'2', 'rotation'=>'auto'),
'title' => array('text'=>'orang'),
'plotBands' => array(
array('from'=>0, 'to'=>200, 'color'=>'#DF5353'),
array('from'=>180, 'to'=>200, 'color'=>'#DDDF0D'),
array('from'=>200, 'to'=>250, 'color'=>'#55BF3B'),
)
),
'series' => array(
array('name' => 'Speed', 'data' => $nilaispeedo)
)
)
));
我的代码有问题吗?或者我错过了什么? 谢谢你的回答