anyone can help me ?
i get problem
my controller.php
public function actionChart()
{
Yii::app()->fusioncharts->setChartOptions( array( 'caption'=>'My Chart', 'xAxisName'=>'Months', 'yAxisName'=>'Revenue' ) );
$sets = array(
array('label'=>'July', 'value'=>'680000'),
array('label'=>'August', 'value'=>'680000'),
array('label'=>'Jan', 'value'=>'680000'),
);
Yii::app()->fusioncharts->addSets($sets);
$categories = array(
array('label'=>'July'),
array('label'=>'August'),
array('label'=>'Jan'),
);
Yii::app()->fusioncharts->addCategories($categories);
Yii::app()->fusioncharts->getXMLData(true);
Yii::app()->fusioncharts->addTrendLine(array('startValue'=>'700000', 'color'=>'009933', 'displayvalue'=>'Target'));
Yii::app()->fusioncharts->addDefinition(array('name'=>'CanvasAnim', 'type'=>'animation', 'param'=>'_xScale', 'start'=>'0', 'duration'=>'1'));
Yii::app()->fusioncharts->addApplication(array('toObject'=>'Canvas', 'styles'=>'CanvasAnim'));
}
and this is my views
<?php
$this->widget('ext.fusioncharts.fusionChartsWidget', array(
'debugMode' => true,
'chartNoCache'=>true, // disabling chart cache
'chartAction'=>Yii::app()->urlManager->createUrl('game/chart'), // the chart action that we just generated the xml data at
'chartId'=>'mychart')); // If you display more then one chart on a single page then make sure you specify and id
?>
When trying to see the view I got :
[html]
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<chart caption="My Chart" xAxisName="Months" yAxisName="Revenue">
<set label="July" value="680000"/>
<set label="August" value="680000"/>
<set label="Jan" value="680000"/>
<categories>
<category label="July"/>
<category label="August"/>
<category label="Jan"/>
</categories>
</chart>
[/html]
somebody can help me ? 