其他分享
首页 > 其他分享> > Flash Chart tool

Flash Chart tool

作者:互联网

原文链接:http://www.cnblogs.com/masky5310/archive/2010/11/01/1865914.html

一、Open Flash Chart

Open Flash Chart 是一个用来生成Flash的图表的开源组件,项目首页有很多漂亮的Flash图表以及使用示例。

作者语录:

And it's really free?!

Yes. Once upon a time I had to deal with a company who sell flash charting components, their component had a bug 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 Flash 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 bug." 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.

官网地址:

V1.0.X http://teethgrinder.co.uk/open-flash-chart/  GPL

V2.0.X  http://teethgrinder.co.uk/open-flash-chart-2/ GNU GPL

           http://code.google.com/p/ofcgwt/

 

 

        二、JPgraph

JpGraph是一个面向对象图形创建函数库。可用它来生成柱状图,饼状图,甘特图,网状图等常用到的一些图形。支持的图片格式有GIF,JPG和PNG。

官网地址:

http://jpgraph.net/

中文站点:(资料偏旧了。不过对于入门算是比较简单了)

http://www.jpgraph.cn/

 

三、FusionCharts

FusionCharts Free is an open-source FREE flash charting component that can be used to render data-driven animated charts. Made in Macromedia Flash MX, FusionCharts can be used with any web scripting language like PHP, ASP, .NET, JSP, ColdFusion, JavaScript, Ruby on Rails etc., to deliver interactive and powerful charts. Using XML as its data interface, FusionCharts makes full use of fluid beauty of Flash to create compact, interactive and visually-arresting charts.

 

官网:FusionCharts Free v2.2 Released: Aug 2009
http://www.fusioncharts.com/free

 

四、jQchart + CanvasGradient

一个基于JQuery 的 Chart 

Demo地址:

http://jsgt.org/lib/jquery/plugin/jqchart/sample/v003/test-use-gradient.html#

 

 

五、XML/SWF charts

使用XML文件最为数据源。

XML/SWF Charts is a simple, yet powerful tool to create attractive charts and graphs from XML data.

Create an XML source to describe a chart, then pass it to this tool's flash file to generate the chart. The XML source can be prepared manually, or generated dynamically using any scripting language (PHP, ASP, CFML, Perl, etc.)

XML/SWF Charts makes the best of both the XML and SWF worlds. XML provides flexible data generation, and Flash provides the best graphic quality.

XML/SWF Charts is free to download and use. The free, unregistered version contains all the features except for:

  • Clicking a chart takes the user to the XML/SWF Charts web site.
  • No displaying charts inside another flash file.
  • No technical support, and no product updates by e-mail.

Developing and maintaining XML/SWF Charts takes a lot of effort. Please register your copy to support this tool.

Web site developers may use unregistered copies of XML/SWF Charts in client web sites. Each web site owner must register their copy independently, or run the unregistered copy that links to the XML/SWF Charts website.

Software developers may redistribute unregistered copies of XML/SWF Charts within other software products, with the copyright attached。

 

 

 

六、ExtJS 3.0 Chart

实际上就是YUI CHART, 具体的文档可以看: http://developer.yahoo.com/yui/charts/

而YUI CHART就是把Yahoo的Astra-Chart给封装了下而已:http://developer.yahoo.com/flash/astra-flash/

 

七、SWFtool

SWFTools 是一组用来处理 Flash 的 swf 文件的工具包,包括:

1. 合并工具 swfcombine

2. 抽取工具 swfextract

3. PDF/JPEG/PNG/AVI/TTF/WAV 到 SWF 的转换工具 :pdf2swf, jpeg2swf, png2swf, avi2swf, font2swf, and wav2swf|

4. 文本解析工具 swfstrings

5. SWF 解析器 swfdump

6. SWF 读写库 rfxswflib

一个简单的将PDF文档转成SWF的用法:

C:\SWFTools\pdf2swf Paper3.pdf -o Paper3.swf -f -T 9

 

 

八、SWFObject 2.2

SWFObject 2.2 uses Diego Perini's solution to emulate DomContentLoaded for Internet Explorer. This solution is also used by jQuery and offers advantages (e.g. no more document.write or invalid paths) over the solution used by SWFObject 2.1 and 2.0.

SWFObject 2.2 extends the registerObject and embedSWF API methods with the optional callbackFn parameter, which points to a user defined callback function that is called after SWFObject has embedded Flash content.

The callback function has an event object as parameter, which exposes the following properties:

  • success, a Boolean to indicate whether the embedding of a SWF was successful or not
  • id, a String indicating the ID as used in the registerObject or embedSWF methods
  • ref, the reference to the active HTML object element (returns undefined when success is false)
An example:
function alertStatus(e) { 
        alert("e.success = " + e.success +"\ne.id = "+ e.id +"\ne.ref = "+ e.ref);
}
swfobject.embedSWF("myFlashContent.swf", "myContent", "300", "120", "9", "expressInstall.swf", null, null, null, alertStatus);

       

参考资料:

        1。http://www.awflasher.com/flash/articles/swfobj.htm [中文帮助]

        2。http://code.google.com/p/swfobject/ [Google Code]

转载于:https://www.cnblogs.com/masky5310/archive/2010/11/01/1865914.html

标签:XML,flash,http,tool,Flash,Chart,SWF,Charts
来源: https://blog.csdn.net/weixin_38168696/article/details/99661799