Fusioncharts free (2)

Source: Internet
Author: User

As mentioned above, you only need to use the fusioncharts freeze file in the .swf file with the fusioncharts.js and 22's matching graph tables in the project package.

The main component of fusioncharts.js is to create a fusionchartsobject. this object will be responsible for displaying the .swf file corresponding to different graph tables on the page. This JS file does not solve the Flash Animation masking problem. If necessary, you can manually modify it in the getswfhtml function:

 

Getswfhtml: Function () {
VaR Swfnode =   "" ;
If (Navigator. plugins && Navigator. mimetypes && Navigator. mimetypes. length) {
// Netscape plugin Architecture
// Remove the covering of Flash files
Swfnode =   ' <Embed type = "application/X-Shockwave-flash" src =" ' +   This . Getattribute ( ' SWF ' ) + ' "Wmode = "Transparent"Width =" ' +   This . Getattribute ( ' Width ' ) + ' "Height =" ' +   This . Getattribute ( ' Height ' ) + ' " ' ;

//
}   Else   { // PC IE
Swfnode =   ' <Object ID =" ' +   This . Getattribute ( ' ID ' ) + ' "Classid =" CLSID: D27CDB6E-AE6D-11cf-96B8-444553540000 "width =" ' +   This . Getattribute ( ' Width ' ) + ' "Height =" ' +   This . Getattribute ( ' Height ' ) + ' "> ' ;
Swfnode + =   ' <Param name = "movie" value =" ' +   This . Getattribute ( ' SWF ' ) + ' "/> ' ;
// Remove the covering of Flash files
Swfnode + = '<Param name = "wmode" value = "Transparent"/> ';

VaR Params =   This . Getparams ();
//
}
Return Swfnode;
}

 

Charts are data visualization solutions. How do I specify chart data for fusioncharts free?

How the hosts file provides data --

    • Dataurl method: specify a URL pointing to an XML document containing chart data. This method corresponds to the setdataurl method of the fusioncharts object.
    • Dataxml: specify an XML snippet. This method corresponds to the setdataxml method of the fusioncharts object.

How can I transmit the corresponding xmldata TO THE .swf file? The fusioncharts object created using the fusioncharts. js file is used to connect the SWF file used for chart display and the data source for Chart display.

In addition to the two methods for specifying XML data for charts, you can also use the updatechartxml JavaScript method implemented in the fusioncharts. js file, which can be seen as an extension of the dataxml method.

How do I select the dataurl and dataxml methods?

Generally, we recommend that you use dataurl to transmit chart data:

    • FollowCodeThe separation principle, we want to separately manage the XML file of chart data and the HTML page used for Chart display, it is believed that no one would like to use variables in JavaScript to save an XML document or segment with a complex structure.
    • Because the SWF file used to receive chart data is sensitive to special characters other than English letters, it may be difficult to construct an XML document or segment using JavaScript variables.

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.