• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. <style>
    9. html,
    10. body {
    11. margin: 0;
    12. padding: 0;
    13. width: 100%;
    14. height: 100%;
    15. }
    16.  
    17. .chart--container {
    18. margin: auto;
    19. min-height: 150px;
    20. width: 640px;
    21. height: 160px;
    22. }
    23.  
    24. .zc-ref {
    25. display: none;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id="myChart" class="chart--container">
    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. layout: '2x2',
    38. graphset: [{
    39. type: 'scorecard',
    40. options: {
    41. value: {
    42. text: '1,000'
    43. },
    44. title: {
    45. text: 'ZingPoints'
    46. },
    47. bars: [{
    48. text: 'Christopher',
    49. value: '675'
    50. },
    51. {
    52. text: 'Aaron',
    53. value: '50'
    54. },
    55. {
    56. text: 'Nick',
    57. value: '275'
    58. }
    59. ],
    60. icon: {
    61. backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/clock.png',
    62. backgroundScale: 0.95
    63. }
    64. },
    65. plotarea: {
    66. margin: '10px'
    67. }
    68. },
    69. {
    70. type: 'scorecard',
    71. options: {
    72. value: {
    73. text: '5,042',
    74. color: '#0a0'
    75. },
    76. icon: {
    77. backgroundColor: '#8eba31 #8dcd41',
    78. backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/layers.png',
    79. backgroundScale: 0.75,
    80. borderColor: '#6fb023'
    81. },
    82. bars: [{
    83. text: 'Certainty of Units?',
    84. value: '5,042'
    85. }],
    86. title: {
    87. text: 'Size of Universe',
    88. color: '#0a0'
    89. }
    90. },
    91. plotarea: {
    92. margin: '10px'
    93. }
    94. },
    95. {
    96. type: 'scorecard',
    97. options: {
    98. value: {
    99. text: '2,074',
    100. color: '#a0a'
    101. },
    102. bars: [{
    103. text: 'Staring into the Abyss',
    104. value: 1574
    105. },
    106. {
    107. text: 'Lazy Days',
    108. value: 500
    109. }
    110. ],
    111. icon: {
    112. backgroundColor: '#ffc90e #ffa100',
    113. backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/calendar.png',
    114. backgroundScale: 0.75,
    115. borderColor: '#ff7200'
    116. },
    117. title: {
    118. text: 'Days Since Last Productive Day'
    119. }
    120. },
    121. plotarea: {
    122. margin: '10px'
    123. }
    124. },
    125. {
    126. type: 'scorecard',
    127. borderRight: '1px solid #ccc',
    128. borderBottom: '1px solid #ccc',
    129. options: {
    130. value: {
    131. text: '632'
    132. },
    133. bars: [{
    134. text: 'Bar 1: 432 wins',
    135. value: 432
    136. },
    137. {
    138. text: 'Bar 2: 130 wins',
    139. value: 130
    140. },
    141. {
    142. text: 'Bar 3: 70 wins',
    143. value: 70
    144. }
    145. ],
    146. icon: {
    147. backgroundColor: '#c90eff #a100ff',
    148. backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/email.png',
    149. backgroundScale: 0.75,
    150. borderColor: '#7200ff'
    151. },
    152. title: {
    153. text: 'Battle of the Bars'
    154. }
    155. },
    156. plotarea: {
    157. margin: '10px'
    158. }
    159. }
    160. ]
    161. };
    162.  
    163. zingchart.render({
    164. id: 'myChart',
    165. data: chartConfig,
    166. height: '160px',
    167. width: '640px',
    168. modules: 'scorecard'
    169. });
    170. </script>
    171. </body>
    172.  
    173. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. </head>
    9.  
    10. <body>
    11. <div id="myChart" class="chart--container">
    12. <a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
    13. </div>
    14. </body>
    15.  
    16. </html>
    1. html,
    2. body {
    3. margin: 0;
    4. padding: 0;
    5. width: 100%;
    6. height: 100%;
    7. }
    8.  
    9. .chart--container {
    10. margin: auto;
    11. min-height: 150px;
    12. width: 640px;
    13. height: 160px;
    14. }
    15.  
    16. .zc-ref {
    17. display: none;
    18. }
    1. let chartConfig = {
    2. layout: '2x2',
    3. graphset: [{
    4. type: 'scorecard',
    5. options: {
    6. value: {
    7. text: '1,000'
    8. },
    9. title: {
    10. text: 'ZingPoints'
    11. },
    12. bars: [{
    13. text: 'Christopher',
    14. value: '675'
    15. },
    16. {
    17. text: 'Aaron',
    18. value: '50'
    19. },
    20. {
    21. text: 'Nick',
    22. value: '275'
    23. }
    24. ],
    25. icon: {
    26. backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/clock.png',
    27. backgroundScale: 0.95
    28. }
    29. },
    30. plotarea: {
    31. margin: '10px'
    32. }
    33. },
    34. {
    35. type: 'scorecard',
    36. options: {
    37. value: {
    38. text: '5,042',
    39. color: '#0a0'
    40. },
    41. icon: {
    42. backgroundColor: '#8eba31 #8dcd41',
    43. backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/layers.png',
    44. backgroundScale: 0.75,
    45. borderColor: '#6fb023'
    46. },
    47. bars: [{
    48. text: 'Certainty of Units?',
    49. value: '5,042'
    50. }],
    51. title: {
    52. text: 'Size of Universe',
    53. color: '#0a0'
    54. }
    55. },
    56. plotarea: {
    57. margin: '10px'
    58. }
    59. },
    60. {
    61. type: 'scorecard',
    62. options: {
    63. value: {
    64. text: '2,074',
    65. color: '#a0a'
    66. },
    67. bars: [{
    68. text: 'Staring into the Abyss',
    69. value: 1574
    70. },
    71. {
    72. text: 'Lazy Days',
    73. value: 500
    74. }
    75. ],
    76. icon: {
    77. backgroundColor: '#ffc90e #ffa100',
    78. backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/calendar.png',
    79. backgroundScale: 0.75,
    80. borderColor: '#ff7200'
    81. },
    82. title: {
    83. text: 'Days Since Last Productive Day'
    84. }
    85. },
    86. plotarea: {
    87. margin: '10px'
    88. }
    89. },
    90. {
    91. type: 'scorecard',
    92. borderRight: '1px solid #ccc',
    93. borderBottom: '1px solid #ccc',
    94. options: {
    95. value: {
    96. text: '632'
    97. },
    98. bars: [{
    99. text: 'Bar 1: 432 wins',
    100. value: 432
    101. },
    102. {
    103. text: 'Bar 2: 130 wins',
    104. value: 130
    105. },
    106. {
    107. text: 'Bar 3: 70 wins',
    108. value: 70
    109. }
    110. ],
    111. icon: {
    112. backgroundColor: '#c90eff #a100ff',
    113. backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/email.png',
    114. backgroundScale: 0.75,
    115. borderColor: '#7200ff'
    116. },
    117. title: {
    118. text: 'Battle of the Bars'
    119. }
    120. },
    121. plotarea: {
    122. margin: '10px'
    123. }
    124. }
    125. ]
    126. };
    127.  
    128. zingchart.render({
    129. id: 'myChart',
    130. data: chartConfig,
    131. height: '160px',
    132. width: '640px',
    133. modules: 'scorecard'
    134. });