• 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 {
          height: 100%;
          width: 100%;
          min-height: 150px;
        }
    
        .zc-ref {
          display: none;
        }
      </style>
    </head>
    
    <body>
      <div id="myChart">
        <a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a>
      </div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        let chartConfig = {
          type: 'null',
          images: [{
              x: 50,
              y: 50,
              width: 16,
              backgroundRepeat: 'no-repeat',
              backgroundPosition: '0 0',
              src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
              repeat: true,
              items: 23,
              cols: 8,
              rows: 4,
              spaceX: 16,
              spaceY: 35
            },
            {
              x: 250,
              y: 50,
              width: 16,
              backgroundRepeat: 'no-repeat',
              backgroundPosition: '0 0',
              src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
              repeat: true,
              items: 13,
              cols: 8,
              rows: 4,
              spaceX: 16,
              spaceY: 35,
              inactive: {
                alpha: 0.25,
                bottomState: {
                  backgroundColor: 'red',
                  offsetX: 10
                }
              }
            },
            {
              x: 450,
              y: 50,
              width: 16,
              backgroundRepeat: 'no-repeat',
              backgroundPosition: '0 0',
              src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
              repeat: true,
              items: 13,
              cols: 8,
              rows: 4,
              spaceX: 16,
              spaceY: 35,
              inactive: {
                backgroundPosition: '-16px 0'
              }
            },
    
            {
              x: 50,
              y: 250,
              width: 16,
              backgroundRepeat: 'no-repeat',
              backgroundPosition: '0 0',
              src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
              repeat: true,
              items: 23,
              cols: 8,
              rows: 4,
              spaceX: 16,
              spaceY: 35,
              offsetCol: 5
            },
            {
              x: 250,
              y: 250,
              width: 16,
              backgroundRepeat: 'no-repeat',
              backgroundPosition: '0 0',
              src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
              repeat: true,
              items: 13,
              cols: 8,
              rows: 4,
              spaceX: 16,
              spaceY: 35,
              offsetRow: 10,
              inactive: {
                alpha: 0.25
              }
            },
            {
              x: 450,
              y: 250,
              width: 16,
              backgroundRepeat: 'no-repeat',
              backgroundPosition: '0 0',
              src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
              repeat: true,
              items: 13,
              cols: 12,
              rows: 3,
              spaceX: 16,
              spaceY: 35,
              offsetCol: -5,
              offsetRow: 10,
              inactive: {
                backgroundPosition: '-16px 0'
              }
            }
          ]
        };
    
        zingchart.render({
          id: 'myChart',
          data: chartConfig,
          height: 500,
          width: 800
        });
      </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>
      <div id="myChart">
        <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 {
      height: 100%;
      width: 100%;
      min-height: 150px;
    }
    
    .zc-ref {
      display: none;
    }
    let chartConfig = {
      type: 'null',
      images: [{
          x: 50,
          y: 50,
          width: 16,
          backgroundRepeat: 'no-repeat',
          backgroundPosition: '0 0',
          src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
          repeat: true,
          items: 23,
          cols: 8,
          rows: 4,
          spaceX: 16,
          spaceY: 35
        },
        {
          x: 250,
          y: 50,
          width: 16,
          backgroundRepeat: 'no-repeat',
          backgroundPosition: '0 0',
          src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
          repeat: true,
          items: 13,
          cols: 8,
          rows: 4,
          spaceX: 16,
          spaceY: 35,
          inactive: {
            alpha: 0.25,
            bottomState: {
              backgroundColor: 'red',
              offsetX: 10
            }
          }
        },
        {
          x: 450,
          y: 50,
          width: 16,
          backgroundRepeat: 'no-repeat',
          backgroundPosition: '0 0',
          src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
          repeat: true,
          items: 13,
          cols: 8,
          rows: 4,
          spaceX: 16,
          spaceY: 35,
          inactive: {
            backgroundPosition: '-16px 0'
          }
        },
    
        {
          x: 50,
          y: 250,
          width: 16,
          backgroundRepeat: 'no-repeat',
          backgroundPosition: '0 0',
          src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
          repeat: true,
          items: 23,
          cols: 8,
          rows: 4,
          spaceX: 16,
          spaceY: 35,
          offsetCol: 5
        },
        {
          x: 250,
          y: 250,
          width: 16,
          backgroundRepeat: 'no-repeat',
          backgroundPosition: '0 0',
          src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
          repeat: true,
          items: 13,
          cols: 8,
          rows: 4,
          spaceX: 16,
          spaceY: 35,
          offsetRow: 10,
          inactive: {
            alpha: 0.25
          }
        },
        {
          x: 450,
          y: 250,
          width: 16,
          backgroundRepeat: 'no-repeat',
          backgroundPosition: '0 0',
          src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
          repeat: true,
          items: 13,
          cols: 12,
          rows: 3,
          spaceX: 16,
          spaceY: 35,
          offsetCol: -5,
          offsetRow: 10,
          inactive: {
            backgroundPosition: '-16px 0'
          }
        }
      ]
    };
    
    zingchart.render({
      id: 'myChart',
      data: chartConfig,
      height: 500,
      width: 800
    });