• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
      <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
      <style>
        html,
        body {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
        }
    
        #myChart {
          position: relative;
          height: 100%;
          width: 100%;
          min-height: 150px;
        }
    
        .zc-ref {
          display: none;
        }
    
        #chart-mask {
          position: absolute;
          top: 0;
          right: 0;
          bottom: 0;
          left: 0;
          background-color: rgba(195, 195, 195, 0.8);
          z-index: 5000;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 1.5rem;
          transition: opacity 0.7s;
          opacity: 0;
          pointer-events: none;
        }
    
        #chart-mask.active {
          transition: opacity 0.7s;
          opacity: 1;
        }
      </style>
    </head>
    
    <body>
      <button id="toggle-mask">Toggle Mask</button>
      <div id="myChart">
        <div id="chart-mask"><span>Toggle Mask Text</span></div><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a>
      </div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig = {
          type: 'bar',
          series: [{
            values: [35, 42, 67, 89, 25, 34, 67, 85]
          }]
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig,
          height: '90%',
          width: '100%'
        });
    
        document.getElementById('toggle-mask').addEventListener('click', function(e) {
          document.getElementById('chart-mask').classList.toggle('active')
        });
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
      <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    </head>
    
    <body>
      <button id="toggle-mask">Toggle Mask</button>
      <div id="myChart">
        <div id="chart-mask"><span>Toggle Mask Text</span></div><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a>
      </div>
    </body>
    
    </html>
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }
    
    #myChart {
      position: relative;
      height: 100%;
      width: 100%;
      min-height: 150px;
    }
    
    .zc-ref {
      display: none;
    }
    
    #chart-mask {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background-color: rgba(195, 195, 195, 0.8);
      z-index: 5000;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      transition: opacity 0.7s;
      opacity: 0;
      pointer-events: none;
    }
    
    #chart-mask.active {
      transition: opacity 0.7s;
      opacity: 1;
    }
    var myConfig = {
      type: 'bar',
      series: [{
        values: [35, 42, 67, 89, 25, 34, 67, 85]
      }]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: '90%',
      width: '100%'
    });
    
    document.getElementById('toggle-mask').addEventListener('click', function(e) {
      document.getElementById('chart-mask').classList.toggle('active')
    });