开源方便的PHP & Flash图表:Open Flash Chart
Open Flash Chart是一个开源的Flash图表绘制工具,提供了各种程序接口,包括PHP、Ruby、Perl、Python、Java、。Net、AS、JS等等各种接口的数据生成,然后Flash展示的功能,是制作简单Flash & PHP 图表的不错开源工具。官方网站:http://teethgrinder.co.uk/open-flash-chart/index.php
下载网址:http://teethgrinder.co.uk/open-flash-chart/download.php
以下效果图是我截取Flash截图,要查看更多效果可以去官方网站。这么好的工具,非常方便我们绘制各种图表啦。。。
相应其他类似的还有:
PHP/SWF Charts: http://www.maani.us/charts/index.php
FusionCharts Free:http://www.fusioncharts.com/free/Default.asp
都很强大,值得尝试,大大减轻我们开发量。
Hello, this is the Open Flash Chart project.
Get graphs like this for free:
How does it work?
[*]User browses to your web site.
[*]The browser downloads the web page which contains the Open Flash Chart.
[*]Open Flash Chart downloads the data file and displays the chart.
When you add Open Flash Chart to your web page, you tell it where to find the data file.
We also do pie charts.
Why is that great?
Whenthe user downloads the web page, Open Flash Chart requests the chartdata from the server. The server knows who the user is so it cangenerate a chart for that particular user showing up to the minutedata.
Add a bit of pizzazz to your bar charts!
Is it complicated to set up?
Youwill need to include the Open Flash Chart in your HTML, and you alsoneed to provide the data file on the server. The data file is either atext file, or a .php, Perl, Python, Java (or another flavour ofdynamic) page.
For a simple chart you would just drop the data.txt file on your website and point the Open Flash Chart to this URL.
Butwhat we really want is dynamic data that is pulled from a database orcalculated or something. To do this you need to create the data filewhen it is requested. To do this we point the Open Flash Chart to a.php page and this PHP page does your calculations and/or databaselookups, then outputs the data file.
To make this a bit easier there are PHP, Perl, Python and Java classes to write the data file for you.
Whyonly these languages? Well any scripting language will do the same job.But I don't have access to anything but PHP. If anyone wants totranslate the PHP class into a different language, then email me and I'll post your code and a link to your web site here. The link to your site will be great for your page rank!
Change the style of the charts.
Get started!
[*]Download Open Flash Chart, this includes the PHP class.
[*]Read the tutorial.
[*]Check out the gallery.
And it's really free?!
Yes.Once upon a time I had to deal with a company who sell flash chartingcomponents, their component had a bug that I needed fixing, so Iemailed them about it asking when it'd be fixed. (Remember that I hadpaid real money for this software.) They were so incompetent, rude andobnoxious that after three or four weeks of emails I thought to myself"I could learn Flash and Actionscript and write my own chartingcomponent, release it as Open Source, host it on sourceforge and buildup a community of helpful coders faster than they can fix a singlebug." And that is what I did. And that is why it is free. I guess themoral of the lesson is: don't piss off your customers.
Want to sponsor Open Flash Chart?
Iam stuck with Flash 8 which is a bit naff. I would love to upgrade toFlash 9 with Actionscript 3.0 but I am skint. So if you are rich andare looking to help out with this project click here!
页:
[1]