Fusion charts free usage

Source: Internet
Author: User
To use the fusioncharts chart, you need to prepare three files in swf format (taking creating a 3D bar chart as an example. This file is the SWF where you want to display the chart. Each SWF file has a style, such as a pie chart and a bar chart. We want to create a 3 D column chart, so we can first prepare column3d.swf. All SWF files are stored in download
Package> charts folder 2) XML file. Fusioncharts free can only read data from XML files. So you have to convert your data into XML format in advance. 3) HTML file. You need to have an HTML file to display the chartdata. XML format.
<graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'>   <set name='Jan' value='462' color='AFD8F8' />   <set name='Feb' value='857' color='F6BD0F' />   <set name='Mar' value='671' color='8BBA00' />   <set name='Apr' value='494' color='FF8E46' />   <set name='May' value='761' color='008E8E' />   <set name='Jun' value='960' color='D64646' />   <set name='Jul' value='629' color='8E468E' />   <set name='Aug' value='622' color='588526' />   <set name='Sep' value='376' color='B3AA00' />   <set name='Oct' value='494' color='008ED6' />   <set name='Nov' value='761' color='9D080D' />   <set name='Dec' value='960' color='A186BE' /></graph>

Use fushioncharts in HTML.

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="600" height="500" id="Column3D" >         <param name="movie" value="../FusionCharts/FCF_Column3D.swf" />         <param name="FlashVars" value="&dataURL=Data.xml&chartWidth=600&chartHeight=500">         <param name="quality" value="high" />         <embed src="../FusionCharts/FCF_Column3D.swf" flashVars="&dataURL=Data.xml&chartWidth=600&chartHeight=500" quality="high" width="600" height="500" name="Column3D" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>

The reason for the two tags <Object> and <embed> is that the labels used by Flash are different in different browsers. Ie uses the <Object> flag and Web browser uses the <embed> flag. To ensure that most browsers can display flash normally, you should embed the <embed> tag inside the <Object> tag, as shown in the example. When ActiveX is enabled, the <Object> label in the <embed> label is ignored. The web site and the old Microsoft browser cannot identify the <Object> tag and load Macromedia.
Flash Player only uses the <embed> label.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.