Thursday, July 2, 2009

FlashChartHelper Pie Chart problem

Hi all,

i make use the FlashChartHelper following its tutorial.
http://bakery.cakephp.org/articles/view/flashcharthelper-version-3#comment-4511

i can successfully create the pie chart using the following php code

*****************************
echo $flashChart->begin(array('prototype'=>true));
$flashChart->setTitle('title', '{color:#f1a334;font-size:25px;padding-
bottom:20px;}');
echo $flashChart->setData(array(1,3,6,9), '{n}', false, 'stuff');
echo $flashChart->chart('pie', array(), 'stuff', 'chart1');
echo $flashChart->render(400, 400, 'chart1', 'chartDomId1');
*****************************

the chart will be rendered to the div with id = 'chartDomld1'

but the next steps is to add the labels in the pie chart?
for example, rabbit is shown in the '1' sector and mouse is shown in
the '3' sector and so on.
how can i make this work?

thanks for your help =)

Regards,
Kit

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: