In a current project of mine, why used OFCA to build up a graph. It works fine :-).

The only thing that matter is when the page (which include the Flash Chart) is loaded by a browser that don't support Flash (i.e. the Adobe plug-in is not installed). In this case, the browser don't see that Flash is needed and then don't ask for the user to install it (it should ask for the user to install it).

Maybe if a

tag was used instead of a tag (to include the chart in the page), it would solve the problem. Another cool feature would be to add a function, in the API : set_alt_message($string); We could use it to : set_alt_message(t("The chart can't be loaded since you're missing the Flash Plugin")); The $string would be printed if Flash is not supported. It's esay to implement HTML-side with the element. P.S : sorry if I describe the issue with wrong style. This is my first issue and i'm not native english-speaker.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bre_mak’s picture

Sorry, i forgot to escape HTML, please read :

"Maybe if a <object> tag was used instead of a <embed> tag (to include the chart in the page), it would solve the problem."

and

"It's easy to implement HTML-side with the <object> element."

pounard’s picture

I'm experiencing the same issue. If there is no flash support, there is just nothing.
Maybe it's an issue with the 1.5 version of SWFObject.

I tried to use 2.x version of this lib (hosted on google code), and tried to rewrite the PHP api to handle it right, but I experienced some problems, because JS code is like hanging all arround PHP class, there is no wrapper to write it right and alter it easily.

pounard’s picture

Status: Active » Needs review
FileSize
1.28 KB

I made a quick and dirty patch which applies to latest stable release.
It adds a set_alternate_text($text) method to open_flash_chart_api class.

Hope it helps.

pedrorocha’s picture

Status: Needs review » Postponed (maintainer needs more info)

The version you said to have this problem are old(we are now in 2.12). Are you still having this problem?

ernest.park’s picture

This is added in OFC2 by default.

pedrorocha’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

As said in the module description, no more improvements will be made here, since Open Flash Chart project is abandoned.