Open Flash Chart Helper version 3
Hello,
I have been testing the ofc helper in drawing line charts and had a
difficult time getting it to work but I eventually got many of the
essential stuff running. The only essential thing that I am having
difficulty with right now is setting the tooltip on the linechart. I
have looked at a few examples of how this is done but so far nothing
has worked for me.
Below is the code that I have used to render the chart.
echo $flashChart->begin();
$flashChart->setLegend('x','Date');
$flashChart->setLegend('y','Total Amount');
$flashChart->setData($graphData, '{n}.total_amount');
$flashChart->setTooltip('#total_amount#');
$flashChart->axis('x',array(
'range' => array(0,count($graphData),5),
'labels'=>$labels
),
array(
'vertical'=>false
));
$flashChart->axis('y',array('range' => array(0,$maxAmount)));
echo $flashChart->chart('line');
echo $flashChart->render('100%');
?>
Kindly assist.
Abel
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home