When I was looking at for chart support on Drupal last week I somehow missed the work you had done here, and set about to write my own integration with Fusion Charts. I spent lots of time on the UI and make it "Easy" for non-coders to generate graphs through a simple interface. I think I have implemented almost all of the UI that fusion charts provides. I have attached the -dev version of my code (D5) for you to look at (you will need to copy the swf files into the charts directory). Is this something that would be of use to you in this module?

I was getting ready to commit this as a module, but will hold off till I hear back from you.

A demo is available here http://sandbox.webtolife.org/fusion. Send me a PM if you want a login to access the admin interface.

CommentFileSizeAuthor
fusioncharts.zip32.85 KBaaron1234nz

Comments

brmassa’s picture

Status: Active » Needs review

Aaron,

nice nice nice! man, i liked your work! i will take a deeper look soon and ill definetivelly include as much as i can on the module.

notice that i will probably wait for the end of Google Summer of Code because this module will receive some nice new important features too.

regards,

massa

use the contact tab to send me the proper login/password ok? thanks!

irinak’s picture

Title: Fusion Charts module » array_combine() error in Fusion sample charts

Hi, I installed Fusion Charts module on D5 (attached above by aaron1234nz). When trying to preview the charts using the Fusion sample (Administer>Site configuration>Fusion Charts), the charts don't display. When clicking on Edit, I get following error:

Fatal error: Call to undefined function: array_combine() in /homepages/7/d247427042/htdocs/dev/sites/all/modules/fusioncharts/fusioncharts.module on line 143

I think that this error and charts not displaying might be connected. Can someone recommend how to fix this error?

Thanks!
Irina

aaron1234nz’s picture

Hi Irina,

I've just consulted the PHP manual and the array_combine function was introduced in PHP 5 (I assume you are using PHP4). I'm doing a bit more work on my code (I found a number of bugs) so will include a fallback function for people using PHP<5.

In the mean time slap this code at the end of the fusioncharts.module file and then let me know how you get on (I have not tested this myself)

//compatability function
if (!function_exists('array_combine')) {
  function array_combine($arr1, $arr2) {
    $out = array();
    $arr1 = array_values($arr1);
    $arr2 = array_values($arr2);
    foreach($arr1 as $key1 => $value1) {
        $out[(string)$value1] = $arr2[$key1];
    }
    return $out;
  }
}
brmassa’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.