jQuery插件FusionCharts实现的3D柱状图效果实例【附

编程学习 2021-07-04 19:20www.dzhlxh.cn编程入门
这篇文章主要介绍了jQuery插件FusionCharts实现的3D柱状图效果,结合具体实例形式详细分析了FusionCharts插件绘制3D柱状图的具体步骤与相关操作技巧,并附带demo源码供读者下载参考,需要的朋友可以参考下

本文实例讲述了jQuery插件FusionCharts实现的3D柱状图效果。分享给大家供大家参考,具体如下:

1、实现源码:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>FusionCharts3D柱状图</title>
    <script src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/fusioncharts.js" ></script>
    <style>
      body,html{
        width:99%;
        height: 98%;
        font-family: "arial rounded mt bold";
        font-size: 12px;
      }
    </style>
    <script>
      $(document).ready(function(){
        FusionCharts.ready(function () {
          var column3DChart = new FusionCharts({
            type: 'column3d',
            renderAt: 'column3D',
            width: '1350',
            height: '650',
            dataFormat: 'json',
            dataSource: {
              "chart": {
                "caption": "(狼蚁SEO)一年收入统计",
                "xAxisName": "月份",
                "yAxisName": "收入明细",
                "paletteColors": "#0075c2",
                "valueFontColor": "#000000",
                "baseFont": "Helvetica Neue,Arial",
                "captionFontSize": "16",
                "subcaptionFontSize": "16",
                "subcaptionFontBold": "1",
                "placeValuesInside": "0",
                "rotateValues": "1",
                "showShadow": "0",
                "divlineColor": "#999999",
                "divLineIsDashed": "1",
                "divlineThickness": "1",
                "divLineDashLen": "1",
                "divLineGapLen": "1",
                "canvasBgColor": "#ffffff"
              },
              "data": [
                {
                  "label": "(狼蚁SEO)一月",
                  "value": "3689"
                },
                {
                  "label": "(狼蚁SEO)二月",
                  "value": "5874"
                },
                {
                  "label": "(狼蚁SEO)三月",
                  "value": "4512"
                },
                {
                  "label": "(狼蚁SEO)四月",
                  "value": "6785"
                },
                {
                  "label": "(狼蚁SEO)五月",
                  "value": "1568"
                },
                {
                  "label": "(狼蚁SEO)六月",
                  "value": "2745"
                },
                {
                  "label": "(狼蚁SEO)七月",
                  "value": "4758"
                },
                {
                  "label": "(狼蚁SEO)八月",
                  "value": "9652"
                },
                {
                  "label": "(狼蚁SEO)九月",
                  "value": "3425"
                },
                {
                  "label": "(狼蚁SEO)十月",
                  "value": "2014"
                },
                {
                  "label": "(狼蚁SEO)十一月",
                  "value": "3652"
                },
                {
                  "label": "(狼蚁SEO)十二月",
                  "value": "7421"
                }
              ]
            }
          });
          column3DChart.render();
        });
      });
    </script>
  </head>
  <body>
    <div id="column3D"></div>
  </body>
</html>

2、实现效果图:

附:完整实例代码点击此处。

更多关于jQuery相关内容感兴趣的读者可查看本站专题:《》、《》、《》、《》、《》及《》

希望本文所述对大家jQuery程序设计有所帮助。

Copyright © 2016-2025 www.dzhlxh.cn 金源码 版权所有 Power by

网站模板下载|网络推广|微博营销|seo优化|视频营销|网络营销|微信营销|网站建设|织梦模板|小程序模板