fusionCharts 图表

3 篇文章 0 订阅

下载地址 :http://www.fusioncharts.com/goodies/fusioncharts-free/

 

使用方法:引用fusionCharts.js

 

然后参照下面代码:

 

<div id="chart_div"/>

<script>
	var chart1 = new FunsionCharts('../funsionCharts/FCF_Line.swf',"chartId",'500',300,'0','1');
	chart1.setDataXML("<graph caption='title',xAxisName='时间',yAxisName='' baseFont='宋体',baseFontSize='12'><set name='时' value='12',color='AFD8F8'></graph>")
	chart1.addParam('wmode','transparent');//Opaque
	chart1.render('chart_div');
</script>
 

用以上的代码就可以显示出图表了。

 

 

但在项目中可能会遇到Html层被其给遮盖了,这时候就要加上标红的那句代码。Adobe官方给出了:

 

 

Window: Use the Window value to play a Flash Player movie in its own rectangular window on a web page. This is the default value for wmode and it works the way the classic Flash Player works. This normally provides the fastest animation performance.

Opaque: By using the Opaque value you can use JavaScript to move or resize movies that don’t need a transparent background. Opaque mode makes the movie hide everything behind it on the page. Additionally, opaque mode moves elements behind Flash movies (for example, with dynamic HTML) to prevent them from showing through.

Transparent: Transparent mode allows the background of the HTML page, or the DHTML layer underneath the Flash movie or layer, to show through all the transparent portions of the movie. This allows you to overlap the movie with other elements of the HTML page. Animation performance might be slower when you use this value.

 

wmode默认属性为window

 

注:fusioncharts-free Y轴显示中文,一直没有解决,期待大拿的出现。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值