Hi!

I am making my first steps in learning Open Flash Charts API. While reading tutorials http://teethgrinder.co.uk/open-flash-chart/tutorial.php I have noticed that it is possible to use external .php data file. Is it also possible while using Open Flash Charts API in Drupal?

Thanks

Comments

ernest.park’s picture

You are referring to using Open Flash Chart 1.

While the example on the site refers to an external data file, there is no need for this in Drupal.

There is a render() method that lets you collect the data, configure the chart, and output the SWF in one file.

You can break this up into pieces, exactly like the website, but there is no need.

If you want Drupal tips for OFC - go to the Open Flash Charts forum. http://forums.openflashchart.com/

Your chart is written to an array. In your code, at the end, just put

echo $chart->render();

pedrorocha’s picture

Status: Active » Closed (won't fix)

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