hkyizu 2011-06-14 11:18:13 3733次浏览 4条回复 0 0 0

请问这段关于 openflashchart2 样例代码中的 X坐标轴的字体大小如何设置啊?谢谢

$flashChart = Yii::createComponent('application.extensions.openflashchart2.EOFC2');
$flashChart->begin('SteppChart');
$flashChart->setTitle('Steppometer','{color:#880a88;font-size:15px;padding-bottom:20px;}');
$data['1']['Day']['date'] = 'October \'09';
$data['1']['Day']['count'] = '123';
$data['2']['Day']['date'] = 'November \'09';
$data['2']['Day']['count'] = 345;
$data['3']['Day']['date'] = 'December \'09';
$data['3']['Day']['count'] = 500;
 
$flashChart->setData($data);
$flashChart->setNumbersPath('{n}.Day.count');
$flashChart->setLabelsPath('default.{n}.Day.date');
 
$flashChart->setLegend('x','Dato');
$flashChart->setLegend('y','Skritt', '{color:#AA0aFF;font-size:12px;}');
 
$flashChart->axis('x',array('tick_height' => 10,'3d' => -10));
$flashChart->axis('y',array('range' => array(0,600,100)));
 
$flashChart->renderData();
$flashChart->render(400,300);
您需要登录后才可以回复。登录 | 立即注册