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!


16 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.
เท่ มากกกก เลยครับ สวยดี
ออกแบบได้สวยดีครับ
thank for good information.
Hi, thanks for the presentation. Would check Drupal.
Always looking up on Drupal's updates. Thanks for this.
The graph looks so simple and yet I can't relate.. I need to read further.
I intended to write you the tiny note so as to give many thanks the moment again just for the stunning opinions you have shared on this website. This has been simply pretty generous with you to grant extensively precisely what most people would've offered for an ebook to get some profit for their own end, most importantly now that you might have done it in the event you wanted. Those pointers additionally worked to be a easy way to recognize that other people have the same zeal just as my very own to understand many more with respect to this issue. I'm sure there are several more enjoyable occasions up front for those who read your site.
cara mudah diet menurunkan berat badan Cara mudah mengecilkan perut tips cepat kurus kurus cepat
Thank you very much for sharing. Definitely solved my problem.
Post new comment