码迷,mamicode.com
首页 > 其他好文 > 详细

最新FusionCharts2D柱状图

时间:2016-05-27 11:24:37      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:

1、实现源码

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>FusionCharts最新FusionCharts2D柱状图</title>
		<script type="text/javascript" src="../js/jquery-1.12.4.js" ></script>
		<script type="text/javascript" src="../js/FusionCharts/fusioncharts.js" ></script>
		<script>
			FusionCharts.ready(function(){
				var columnChart = new FusionCharts({
					type:"column2d",
					renderAt:"column2D",
					width:"1345",
					height:"620",
					dataSource:{
						"chart":{
							"caption":"月销售量",
							"xAxisName":"月份",
							"yAxisName":"销售量",
							"exportEnabled":"1"
						},
						"data":[
							{
								"label":"1月",
								"value":"120"
							},{
								"label":"2月",
								"value":"230"
							},{
								"label":"3月",
								"value":"654"
							},{
								"label":"4月",
								"value":"454"
							},{
								"label":"5月",
								"value":"323"
							},{
								"label":"6月",
								"value":"640"
							},{
								"label":"7月",
								"value":"431"
							},{
								"label":"8月",
								"value":"809"
							},{
								"label":"9月",
								"value":"345"
							},{
								"label":"10月",
								"value":"430"
							},{
								"label":"11月",
								"value":"870"
							},{
								"label":"12月",
								"value":"670"
							}]
					}
				}).render();
			});
		</script>
	</head>
	<body>
		<div id="column2D"></div>
	</body>
</html>

2、实现结果

技术分享

最新FusionCharts2D柱状图

标签:

原文地址:http://blog.csdn.net/you23hai45/article/details/51511464

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!