• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
      <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
    
      <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
      <style>
        #reload {
          background: #00BAF0;
          border: none;
          border-radius: 4px;
          color: white;
          cursor: pointer;
          font-size: 16px;
          padding: 4px 8px;
        }
      </style>
    </head>
    
    <body>
      <div id='myChart'></div>
      <button id="reload"><i class="fa fa-refresh"></i>&nbsp;Replay Animation</button>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig = {
          type: "bar",
          plot: {
            animation: {
              effect: 4,
              method: 0,
              sequence: 1
            }
          },
          series: [{
              values: [35, 42, 67, 89, 25, 34, 67, 85]
            },
            {
              values: [10, 15, 10, 15, 10, 15, 10, 15]
            },
            {
              values: [30, 10, 50, 20, 15, 10, 35, 10]
            }
          ]
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig,
          height: 350,
          width: "100%"
        });
    
        var reload = document.querySelector('#reload');
        if (reload) {
          reload.addEventListener('click', function() {
            zingchart.exec('myChart', 'reload');
          });
        }
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
      <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
    
      <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    </head>
    
    <body>
      <div id='myChart'></div>
      <button id="reload"><i class="fa fa-refresh"></i>&nbsp;Replay Animation</button>
    </body>
    
    </html>
    #reload {
      background: #00BAF0;
      border: none;
      border-radius: 4px;
      color: white;
      cursor: pointer;
      font-size: 16px;
      padding: 4px 8px;
    }
    var myConfig = {
      type: "bar",
      plot: {
        animation: {
          effect: 4,
          method: 0,
          sequence: 1
        }
      },
      series: [{
          values: [35, 42, 67, 89, 25, 34, 67, 85]
        },
        {
          values: [10, 15, 10, 15, 10, 15, 10, 15]
        },
        {
          values: [30, 10, 50, 20, 15, 10, 35, 10]
        }
      ]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: 350,
      width: "100%"
    });
    
    var reload = document.querySelector('#reload');
    if (reload) {
      reload.addEventListener('click', function() {
        zingchart.exec('myChart', 'reload');
      });
    }