• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
      <script nonce="undefined" src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
    
      <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
      <style>
        html,
        body {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
        }
    
        #myChart {
          height: 100%;
          width: 100%;
          min-height: 150px;
        }
      </style>
    </head>
    
    <body>
      <div id="myChart"></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig = {
          "type": "vbar3d",
          "plotarea": {
    
          },
          "scaleX": {
    
          },
          "scaleY": {
    
          },
          "plot": {
            "hoverState": {
              "backgroundColor": "#000",
              "borderWidth": 5,
              "borderColor": "#999"
            }
          },
          "-series": [{
              "values": [69],
              "text": "Apple"
            },
            {
              "values": [51],
              "text": "Microsoft"
            },
            {
              "values": [42],
              "text": "Oracle"
            },
            {
              "values": [25],
              "text": "Dell"
            }
          ],
          "series": [{
              "values": [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69],
              "text": "Apple"
            },
            {
              "values": [51, 53, 47, 60, 48, 52, 75, 52, 55, 47, 60, 48],
              "text": "Microsoft"
            }
          ]
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig,
          height: '100%',
          width: '100%'
        });
    
        var NODE_STATE = {};
        zingchart.bind('myChart', 'node_mouseover', function(p) {
          var sClass = p.graphid + '-plotset-plot-' + p.plotindex + '-node-' + p.nodeindex + '-3dfacet';
          var oNode = $('.' + sClass);
          NODE_STATE = {
            'fill': oNode.attr('fill'),
            'stroke-width': oNode.attr('stroke-width'),
            'stroke': oNode.attr('stroke')
          };
          $('.' + sClass)
            .attr('fill', '#000')
            .attr('stroke', '#f90')
            .attr('stroke-width', 3);
        });
    
        zingchart.bind('myChart', 'node_mouseout', function(p) {
          var sClass = p.graphid + '-plotset-plot-' + p.plotindex + '-node-' + p.nodeindex + '-3dfacet';
          var oNode = $('.' + sClass);
          $('.' + sClass)
            .attr('fill', NODE_STATE['fill'])
            .attr('stroke', NODE_STATE['stroke'])
            .attr('stroke-width', NODE_STATE['stroke-width']);
        });
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
      <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
    
      <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    </head>
    
    <body>
      <div id="myChart"></div>
    </body>
    
    </html>
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }
    
    #myChart {
      height: 100%;
      width: 100%;
      min-height: 150px;
    }
    var myConfig = {
      "type": "vbar3d",
      "plotarea": {
    
      },
      "scaleX": {
    
      },
      "scaleY": {
    
      },
      "plot": {
        "hoverState": {
          "backgroundColor": "#000",
          "borderWidth": 5,
          "borderColor": "#999"
        }
      },
      "-series": [{
          "values": [69],
          "text": "Apple"
        },
        {
          "values": [51],
          "text": "Microsoft"
        },
        {
          "values": [42],
          "text": "Oracle"
        },
        {
          "values": [25],
          "text": "Dell"
        }
      ],
      "series": [{
          "values": [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69],
          "text": "Apple"
        },
        {
          "values": [51, 53, 47, 60, 48, 52, 75, 52, 55, 47, 60, 48],
          "text": "Microsoft"
        }
      ]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: '100%',
      width: '100%'
    });
    
    var NODE_STATE = {};
    zingchart.bind('myChart', 'node_mouseover', function(p) {
      var sClass = p.graphid + '-plotset-plot-' + p.plotindex + '-node-' + p.nodeindex + '-3dfacet';
      var oNode = $('.' + sClass);
      NODE_STATE = {
        'fill': oNode.attr('fill'),
        'stroke-width': oNode.attr('stroke-width'),
        'stroke': oNode.attr('stroke')
      };
      $('.' + sClass)
        .attr('fill', '#000')
        .attr('stroke', '#f90')
        .attr('stroke-width', 3);
    });
    
    zingchart.bind('myChart', 'node_mouseout', function(p) {
      var sClass = p.graphid + '-plotset-plot-' + p.plotindex + '-node-' + p.nodeindex + '-3dfacet';
      var oNode = $('.' + sClass);
      $('.' + sClass)
        .attr('fill', NODE_STATE['fill'])
        .attr('stroke', NODE_STATE['stroke'])
        .attr('stroke-width', NODE_STATE['stroke-width']);
    });