Posted in Javascript onMarch 06, 2017
本文实例讲述了jQuery插件FusionCharts实现的2D面积图效果。分享给大家供大家参考,具体如下:
1、实现代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>FusionCharts2D面积图</title> <script type="text/javascript" src="jquery-1.7.2.min.js"></script> <script type="text/javascript" src="fusioncharts/fusioncharts.js"></script> <script type="text/javascript" src="fusioncharts/fusioncharts.charts.js"></script> <script type="text/javascript"> FusionCharts.ready(function () { var salesChart = new FusionCharts({ type: 'area2d', renderAt: 'area2D', width: '1290', height: '600', dataFormat: 'json', dataSource: { "chart": { "caption": "(三水点靠木)年度收入", "subCaption": "", "xAxisName": "季度", "yAxisName": "收入", "numberPrefix": "¥", "paletteColors": "#1275c2", "bgColor": "#CCCCCC", "showBorder": "1", "showCanvasBorder": "1", "plotBorderAlpha": "10", "usePlotGradientColor": "10", "plotFillAlpha": "50", "showXAxisLine": "1", "axisLineAlpha": "25", "divLineAlpha": "10", "showValues": "1", "showAlternateHGridColor": "0", "captionFontSize": "14", "subcaptionFontSize": "14", "subcaptionFontBold": "0", "toolTipColor": "#ffffff", "toolTipBorderThickness": "1", "toolTipBgColor": "#FF0000", "toolTipBgAlpha": "60", "toolTipBorderRadius": "5", "toolTipPadding": "10", "baseFont":"20" }, "data": [ { "label": "(3water.com)第一季度", "value": "59865" }, { "label": "(3water.com)第二季度", "value": "63254" }, { "label": "(3water.com)第三季度", "value": "34256" }, { "label": "(3water.com)第四季度", "value": "89562" } ] } }).render(); }); </script> </head> <body> <div id="area2D"></div> </body> </html>
2、实现效果图:
jQuery插件FusionCharts实现的2D面积图效果示例【附demo源码下载】
- Author -
翱翔天地声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@