Hello Sir,
Can you please help me.
It seems I am doing most of it right, but unfortunately, the charts are not showing on the Page. Following is the source from the HTML which is produced.
There is no error, but there is no output as well, I am returned with a blank page.
What could I be missing?
Many Thanks for your help in advance.
Regards
Ankur
var so = new SWFObject("/modules/open_flash_chart_api/open-flash-chart.swf", "ofc", "200", "200", "9", "#FFFFFF");
so.addVariable("variables","true");
so.addVariable("title","Bar+Chart,{font-size: 20px;}");
so.addVariable("x_label_style","10,#9933CC,0,2");
so.addVariable("x_axis_steps","2");
so.addVariable("y_legend","Open Flash Chart,12,#736AFF");
so.addVariable("y_ticks","5,10,4");
so.addVariable("bar","50,#9933CC,#8010A0,Page views");
so.addVariable("values","9,5,9,5,9,7");
so.addVariable("x_labels","January%23comma%23February%23comma%23March%23comma%23April%23comma%23May%23comma%23June");
so.addVariable("y_min","0");
so.addVariable("y_max","10");
so.addVariable("bg_colour","0xDFFFDF");
so.write("i09edf9038cc68aeb858b7fb162d1be65");
| Comment | File | Size | Author |
|---|---|---|---|
| Copy of open_flash_chart_api.txt | 39.45 KB | mohan.ankur |
Comments
Comment #1
jvandervort commentedMake sure you have:
at the top of the page in the header as well.
Did you download and install the .swf file and the swfobject.js file as well?
If you use firefox, the console can give you the js errors.
Comment #2
mohan.ankur commentedHello Sir,
I checked the Firefox error console and saw that the SWFObject is not being defined.
var so = new SWFObject("/modules/open_flash_chart_api/open-flash-chart.swf", "ofc", "", "", "9", "#FFFFFF");
I downloaded the Module and installed it in Drupal. Then I downloaded the package of API from the site that was suggested in Drupal and put JS folder in the Module folder along with the open-flash-chart.swf file.
---
Folllwing is what results from the api module module in the HTML
I do not know how to install the SWF? Can you please suggest? Many Thanks for your help in advance.
Comment #3
jvandervort commentedThat's a good error to get at least. It usually means you loaded the 2.0 version of the swfobject.
Open up the swfobject.js file in the js sub directory and check the version at the top of the file.
You want it to be 1.5
Also, make sure you are using the 1.9.7 version of OFC, and not the newer beta.
Comment #4
mohan.ankur commentedGreat it works now, and I finally see the charts :)
Many thanks for this...
Just one quick thing about the small error below, can U please help?
"implode() [function.implode]: Invalid arguments passed in C:\xampp\htdocs\modules\open_flash_chart_api\open_flash_chart_api.module on line 951. "
Or may be It may be because of my stupidity again !!!
Thanks again for getting this working.
Cheers
Ankur
Comment #5
jvandervort commentedCan you post your php using the chart object?
It looks like you are passing a scalar in place of an array or vice-versa.
Comment #6
redndahead commentedclosing from lack of a response.