• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. <style>
    10. html,
    11. body {
    12. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23.  
    24. .zc-ref {
    25. display: none;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id="myChart">
    32. <a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a>
    33. </div>
    34. <script>
    35. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    36. let chartConfig = {
    37. type: 'null',
    38. images: [{
    39. offsetCol: -5,
    40. offsetRow: 10,
    41.  
    42. inactive: {
    43. alpha: 0.25
    44. },
    45.  
    46. cols: 8,
    47. rows: 4,
    48. items: 23,
    49.  
    50. src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
    51. backgroundRepeat: 'no-repeat',
    52. backgroundPosition: '0 0',
    53. repeat: true,
    54. width: 16,
    55. spaceX: 20,
    56. spaceY: 35,
    57.  
    58. x: 50,
    59. y: 70,
    60. }, ]
    61. };
    62.  
    63. zingchart.render({
    64. id: 'myChart',
    65. data: chartConfig,
    66. height: 250,
    67. width: 280
    68. });
    69. </script>
    70. </body>
    71.  
    72. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id="myChart">
    13. <a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a>
    14. </div>
    15. </body>
    16.  
    17. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. let chartConfig = {
    2. type: 'null',
    3. images: [{
    4. offsetCol: -5,
    5. offsetRow: 10,
    6.  
    7. inactive: {
    8. alpha: 0.25
    9. },
    10.  
    11. cols: 8,
    12. rows: 4,
    13. items: 23,
    14.  
    15. src: 'https://app.zingsoft.com/api/file/1NJRAA52/user-sprite.png',
    16. backgroundRepeat: 'no-repeat',
    17. backgroundPosition: '0 0',
    18. repeat: true,
    19. width: 16,
    20. spaceX: 20,
    21. spaceY: 35,
    22.  
    23. x: 50,
    24. y: 70,
    25. }, ]
    26. };
    27.  
    28. zingchart.render({
    29. id: 'myChart',
    30. data: chartConfig,
    31. height: 250,
    32. width: 280
    33. });