Open Flash Chart API didn't function in my project until I modified the row 969 in this way:
this is the original:
$tmp[] = 'var so = new SWFObject("/'. $this->swf_path .'/open-flash-chart.swf", "ofc", "'. $this->width .'", "'. $this->height .'", "9", "#FFFFFF");';
this is mine fixed:
$tmp[] = 'var so = new SWFObject("'.base_path().'/'. $this->swf_path .'/open-flash-chart.swf", "ofc", "'. $this->width .'", "'. $this->height .'", "9", "#FFFFFF");';
The basepath of Drupal in my server is /var/www/html/drupal and not /var/www/html/. Without this fix, the first parameter for SWFObject method doesn't link correctly SWF file.
Gianfrasoft.
Comments
Comment #1
jvandervort commentedGive the nightly dev snapshot a try. That fix was added, but never released back on Nov17.
Comment #2
gianfrasoft commentedSorry, but something don't go...
I tried this version:
open_flash_chart_api 5.x-3.x-dev
redndahead - November 26, 2007 - 21:45
Nightly development snapshot from CVS branch: DRUPAL-5--3
but now my Drupal gives back to me these messages:
* warning: Missing argument 2 for open_flash_chart_api_help() in /var/www/html/drupal/modules/open_flash_chart_api/open_flash_chart_api.module on line 1108.
* warning: Missing argument 2 for open_flash_chart_api_help() in /var/www/html/drupal/modules/open_flash_chart_api/open_flash_chart_api.module on line 1108.
and also my bar chart doesn't show all the bars because the image is not correctly resized (horizontally) in the chart area.
The previous version didn't show correctly the horizontal labels (putting all of them on the bottom left side of the image), now the that problem seems to be fixed.
Thanks a lot, redndahead.
Gianfrasoft.
Comment #3
jvandervort commentedThis is the version you want: 5.x-2.x-dev
It is on the top level module page under "Development snapshots" in pink.
That 3.x branch doesn't have anything useful in it yet.
Comment #4
redndahead commentedDon't thank me thank jvandervort. he's been pimping out the latest releases. Wahoo!!
Comment #5
gianfrasoft commentedNow everything seems to go.
Thanks a lot, jvandervort!
Bye,
Gianfrasoft.