开源方便的PHP & Flash图表:Open Flash Chart

Posted in PHP by neemem on 06-18-2008.

Open Chart 是一个开源的图表绘制工具,提供了各种程序接口,包括、Ruby、Perl、、Java、。Net、AS、JS等等各种接口 的数据生成,然后展示的功能,是制作简单 & 图表的不错开源工具。

官方网站:http://teethgrinder.co.uk/open-flash-chart/index.php
下载网址:http://teethgrinder.co.uk/open-flash-chart/download.php

以下效果图是我截取截图,要查看更多效果可以去官方网站。这么好的工具,非常方便我们绘制各种图表啦。。。

相应其他类似的还有:
/SWF Charts: http://www.maani.us/charts/index.php
FusionCharts Freehttp://www.fusioncharts.com/free/Default.asp

都很强大,值得尝试,大大减轻我们开发量。

Hello, this is the Open Chart project.

Get graphs like this for free: open_flash_chart_1.JPG

How does it work?

  1. User browses to your site.
  2. The browser downloads the page which contains the Open Chart.
  3. Open Chart downloads the data file and displays the chart.

When you add Open Chart to your page, you tell it where to find the data file.

open_flash_chart_2.JPG

We also do pie charts.

Why is that great?

When the user downloads the page, Open Chart requests the chart data from the . The knows who the user is so it can generate a chart for that particular user showing up to the minute data.

open_flash_chart_3.JPG

Add a bit of pizzazz to your bar charts!

Is it complicated to set up?

You will need to include the Open Chart in your , and you also need to provide the data file on the . The data file is either a text file, or a ., Perl, , Java (or another flavour of dynamic) page.

For a simple chart you would just drop the data.txt file on your website and point the Open Chart to this URL.

But what we really want is dynamic data that is pulled from a database or calculated or something. To do this you need to create the data file when it is requested. To do this we point the Open Chart to a . page and this page does your calculations and/or database lookups, then outputs the data file.

To make this a bit easier there are , Perl, and Java classes to write the data file for you.

Why only these languages? Well any scripting language will do the same job. But I don’t have access to anything but . If anyone wants to translate the class into a different language, then email me and I’ll post your code and a link to your site here. The link to your site will be great for your page rank!

open_flash_chart_4.JPG

Change the style of the charts.

Get started!

  1. Download Open Flash Chart, this includes the class.
  2. Read the tutorial.
  3. Check out the gallery.

And it’s really free?!

Yes. Once upon a time I had to deal with a company who sell charting components, their component had a that I needed fixing, so I emailed them about it asking when it’d be fixed. (Remember that I had paid real money for this software.) They were so incompetent, rude and obnoxious that after three or four weeks of emails I thought to myself “I could learn and Actionscript and write my own charting component, release it as Open Source, host it on sourceforge and build up a community of helpful coders faster than they can fix a single .” And that is what I did. And that is why it is free. I guess the moral of the lesson is: don’t piss off your customers.

Want to sponsor Open Chart?

I am stuck with 8 which is a bit naff. I would love to upgrade to 9 with Actionscript 3.0 but I am skint. So if you are rich and are looking to help out with this project click here!

Related posts:
2元股重现股市 十连阴难免 CC攻击的思路

Leave a Reply