This is a demonstration page of Open Flash Chart 2 API for Drupal. For information on how to install and code examples, please visit the documentation page on drupal.org.
First things first, here's the sample chart that comes with the API:
The above chart is rendered using data file method. You can see its data in JSON format at /ofc_api/data/ofc_api_sample
Next, on the left is a pie chart created by a custom module using the built-in API. And on the right is a radar chart created by the same module using the third party API (php-ofc-library). These two charts also use the data file method as well:
(FYI, the Firefox slice is clickable just for fun)
The data for the pie chart is located at /ofc_api/data/ofc_demo_pie_chart. And the data for the radar chart is located at ofc_api/data/ofc_demo_radar_chart.
The following chart is rendered using JavaScript method. The PHP code used to create the chart is put right here in the node body. And the chart is rendered on-the-fly without creating any function or module.
The data for the above chart is embeded in this page using JavaScript. You can see the JSON being wrapped in a <script> tag in the <head> section when you view the source of this page.
Here's some more advanced line chart and its data. All values above 1.75 will get a red dot. Clicking any dot with its value above 2.3 will take you to Google:
That's it for the demonstration. Please feel free to leave any comments or suggestions on how to improve this module :) Thanks!


9 comments
Thank you for this great drupal module. :)
สุดยอดดดดดดด ^ ^
Thats a cool one...Cheers!!!
Thank you for comments!
I have updated the demo to show some clickable stuffs in pie chart and advanced line chart, you may want to check it out :)
Very useful website, wants to see much more on it! Go on!
Well done!
Thank for your module, I am using the module on a project but i get a problem when turn on drupal cache. After turning on drupal paga cache, chart don't show because of invalid json format.
have you tried this?
Hi,
Actually on this site I have caching mode set to normal and page compression is enabled and everything seems to work fine.
So I'm not sure if it's because of the module, but I'll look for more info about this.
เท่ มากกกก เลยครับ สวยดี
Post new comment