FusionCharts plugin for CakePHP updated

Posted in CakePHP on 28.06.2010.

The new version of FusionCharts plugin has been fixed to work with CakePHP 1.3.x series.

As mentioned in the comments of the initial FC plugin release, it seems like the plugin stopped working with CakePHP 1.3.x.

I've checked the code and updated what needed to be updated, so this is just a maintenance release, no new stuff.

Additionally, I've moved the code to my GitHub account:


If you're using CakePHP 1.2.x you should probably download the 0.1 version of this plugin, also available as a tag on GitHub.

If you're using CakePHP 1.3.x try using the latest version from the GitHub repository.

In both cases, please read the instructions carefully on how to make this plugin work. Make sure you go through all the comments before asking a question.

Happy baking!

Article comments — View · Add

Page 1 of 12
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9

stabbie :: 08.07.2010 07:34:42
Good work, thanks for the update!
Antoine_Walker :: 09.07.2010 23:58:58
Thanks a lot for this plugin. I've used fusioncharts before outside of cake and I was elated to know that there's a plugin for it. I am unable to get it to show the swf on the page though. Firebug shows an error saying FusionCharts is not defined and points to this line:

var chart_Column3D2 = new FusionCharts("/bssd/fusion_charts/swf/FCF_Column3D.swf", "Column3D2", "600", "350");

Am I missing something? I followed the instructions to a t and read all the comments for possible hints and gotchas.
lecterror :: 10.07.2010 18:25:36
Hi Antoine,

Did you check the Net panel in Firebug? Are you getting any 404 errors? Can you also check the response of the request for fusion charts JavaScript file? If it's not JS, there's the problem... :)
Antoine_Walker :: 10.07.2010 21:23:20
Hi Lecterror, thank you for your quick response. I did check firebug and wasn't getting any 404 errors, instead I got a message stating that FusionCharts was not defined, so I realized that my FusionCharts.js file was no properly referenced in my view. Fixed it and voila, everything works now. Just one more question though, do you have any examples on how to use data from a CakePHP model?? I'm really new to cake and I'm having trouble getting data into the functions in FusionCharts_Gen.php like addDataset(),addChartData(), addDatasetsFromDatabase() and addDataFromDatabase(). You've done a significant amount of work and I really applaud your efforts. This is really useful for people like me.
lecterror :: 11.07.2010 16:28:39
Hi again!

Is there any reason you need to use FC class directly instead of the plugin (component) methods?

The idea was to fetch data using Cake's models, extract and process it with the help of the Cake's Set class and then pass it on to FC plugin methods (which will convert it to "native" FC format).

Could you provide more info on what are you trying to do and why is it a problem?