欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

jQuery插件FusionCharts实现的3D柱状图效果实例【附demo源码下载】

程序员文章站 2024-02-07 23:32:46
本文实例讲述了jquery插件fusioncharts实现的3d柱状图效果。分享给大家供大家参考,具体如下: 1、实现源码:

本文实例讲述了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": "()一年收入统计",
                "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": "()一月",
                  "value": "3689"
                },
                {
                  "label": "()二月",
                  "value": "5874"
                },
                {
                  "label": "()三月",
                  "value": "4512"
                },
                {
                  "label": "()四月",
                  "value": "6785"
                },
                {
                  "label": "()五月",
                  "value": "1568"
                },
                {
                  "label": "()六月",
                  "value": "2745"
                },
                {
                  "label": "()七月",
                  "value": "4758"
                },
                {
                  "label": "()八月",
                  "value": "9652"
                },
                {
                  "label": "()九月",
                  "value": "3425"
                },
                {
                  "label": "()十月",
                  "value": "2014"
                },
                {
                  "label": "()十一月",
                  "value": "3652"
                },
                {
                  "label": "()十二月",
                  "value": "7421"
                }
              ]
            }
          });
          column3dchart.render();
        });
      });
    </script>
  </head>
  <body>
    <div id="column3d"></div>
  </body>
</html>

2、实现效果图:

jQuery插件FusionCharts实现的3D柱状图效果实例【附demo源码下载】

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

更多关于jquery相关内容感兴趣的读者可查看本站专题:《jquery常用插件及用法总结》、《jquery中ajax用法总结》、《jquery表格(table)操作技巧汇总》、《jquery扩展技巧总结》、《jquery常见经典特效汇总》及《jquery选择器用法总结

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