• 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></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. let chartConfig = {
    17. type: 'calendar',
    18. options: {
    19. month: { // Configure the month labels and styling by month.
    20. values: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], // Set the month labels.
    21. outline: { // Use this object to style the borders of active and inactive months.
    22. borderColor: 'red',
    23. borderWidth: 2
    24. }
    25. },
    26. year: {
    27. text: '2016',
    28. },
    29. values: [
    30. ['2016-02-01', 7],
    31. ['2016-02-02', 12],
    32. ['2016-02-03', 3],
    33. ['2016-02-04', 3],
    34. ['2016-02-05', 9],
    35. ['2016-02-08', 9],
    36. ['2016-02-09', 9],
    37. ['2016-02-10', 4],
    38. ['2016-02-11', 5],
    39. ['2016-02-12', 8],
    40. ['2016-02-15', 8],
    41. ['2016-02-16', 3],
    42. ['2016-02-17', 7],
    43. ['2016-02-18', 5],
    44. ['2016-02-19', 9],
    45. ['2016-02-22', 6],
    46. ['2016-02-23', 5],
    47. ['2016-02-24', 8],
    48. ['2016-02-25', 10],
    49. ['2016-02-26', 4],
    50. ['2016-02-29', 5],
    51. ['2016-03-01', 9],
    52. ['2016-03-02', 9],
    53. ['2016-03-03', 3],
    54. ['2016-03-04', 3],
    55. ['2016-03-07', 4],
    56. ['2016-03-08', 2],
    57. ['2016-03-09', 10],
    58. ['2016-03-10', 9],
    59. ['2016-03-11', 7],
    60. ['2016-03-14', 8],
    61. ['2016-03-15', 7],
    62. ['2016-03-16', 8],
    63. ['2016-03-17', 8],
    64. ['2016-03-18', 2],
    65. ['2016-03-21', 3],
    66. ['2016-03-22', 4],
    67. ['2016-03-23', 5],
    68. ['2016-03-24', 6],
    69. ['2016-03-25', 7],
    70. ['2016-03-28', 8],
    71. ['2016-03-29', 8],
    72. ['2016-03-30', 9],
    73. ['2016-03-31', 7],
    74. ['2016-04-01', 9],
    75. ['2016-04-04', 7],
    76. ['2016-04-05', 5],
    77. ['2016-04-06', 6],
    78. ['2016-04-07', 9],
    79. ['2016-04-08', 4],
    80. ['2016-04-11', 8],
    81. ['2016-04-12', 9],
    82. ['2016-04-13', 3],
    83. ['2016-04-14', 5],
    84. ['2016-04-15', 5],
    85. ['2016-04-18', 8],
    86. ['2016-04-19', 8],
    87. ['2016-04-20', 9],
    88. ['2016-04-21', 3],
    89. ['2016-04-22', 6],
    90. ['2016-04-25', 12],
    91. ['2016-04-26', 6],
    92. ['2016-04-27', 5],
    93. ['2016-04-28', 5],
    94. ['2016-04-29', 11],
    95. ['2016-05-02', 9],
    96. ['2016-05-03', 3],
    97. ['2016-05-04', 5],
    98. ['2016-05-05', 4],
    99. ['2016-05-06', 9],
    100. ['2016-05-09', 5],
    101. ['2016-05-10', 5],
    102. ['2016-05-11', 7],
    103. ['2016-05-12', 7],
    104. ['2016-05-13', 5],
    105. ['2016-05-16', 3],
    106. ['2016-05-17', 2],
    107. ['2016-05-18', 7],
    108. ['2016-05-19', 5],
    109. ['2016-05-20', 3],
    110. ['2016-05-23', 9],
    111. ['2016-05-24', 11],
    112. ['2016-05-25', 5],
    113. ['2016-05-26', 9],
    114. ['2016-05-27', 4],
    115. ['2016-05-30', 5],
    116. ['2016-05-31', 7],
    117. ['2016-06-01', 9],
    118. ['2016-06-02', 5],
    119. ['2016-06-03', 5],
    120. ['2016-06-06', 6],
    121. ['2016-06-07', 7],
    122. ['2016-06-08', 8],
    123. ['2016-06-09', 5],
    124. ['2016-06-10', 8],
    125. ['2016-06-13', 6],
    126. ['2016-06-14', 6],
    127. ['2016-06-15', 2],
    128. ['2016-06-16', 7],
    129. ['2016-06-17', 5],
    130. ['2016-06-20', 5],
    131. ['2016-06-21', 8],
    132. ['2016-06-22', 8],
    133. ['2016-06-23', 8],
    134. ['2016-06-24', 10],
    135. ['2016-06-27', 7],
    136. ['2016-06-28', 12],
    137. ['2016-06-29', 7],
    138. ['2016-06-30', 6],
    139. ['2016-07-01', 12],
    140. ['2016-07-04', 3],
    141. ['2016-07-05', 4],
    142. ['2016-07-06', 9],
    143. ['2016-07-07', 11],
    144. ['2016-07-08', 5],
    145. ['2016-07-11', 5],
    146. ['2016-07-12', 9],
    147. ['2016-07-13', 9],
    148. ['2016-07-14', 9],
    149. ['2016-07-15', 4],
    150. ['2016-07-18', 6],
    151. ['2016-07-19', 5],
    152. ['2016-07-20', 6],
    153. ['2016-07-21', 2],
    154. ['2016-07-22', 5],
    155. ['2016-07-25', 9],
    156. ['2016-07-26', 6],
    157. ['2016-07-27', 6],
    158. ['2016-07-28', 7],
    159. ['2016-07-29', 7],
    160. ['2016-08-01', 12],
    161. ['2016-08-02', 3],
    162. ['2016-08-03', 3],
    163. ['2016-08-04', 9],
    164. ['2016-08-05', 9],
    165. ['2016-08-08', 9],
    166. ['2016-08-09', 4],
    167. ['2016-08-10', 5],
    168. ['2016-08-11', 8],
    169. ['2016-08-12', 8],
    170. ['2016-08-15', 3],
    171. ['2016-08-16', 7],
    172. ['2016-08-17', 5],
    173. ['2016-08-18', 9],
    174. ['2016-08-19', 6],
    175. ['2016-08-22', 5],
    176. ['2016-08-23', 8],
    177. ['2016-08-24', 10],
    178. ['2016-08-25', 4],
    179. ['2016-08-26', 5],
    180. ['2016-08-29', 9],
    181. ['2016-08-30', 9],
    182. ['2016-08-31', 3],
    183. ['2016-09-01', 3],
    184. ['2016-09-02', 4],
    185. ['2016-09-05', 2],
    186. ['2016-09-06', 10],
    187. ['2016-09-07', 9],
    188. ['2016-09-08', 7],
    189. ['2016-09-09', 8],
    190. ['2016-09-12', 7],
    191. ['2016-09-13', 8],
    192. ['2016-09-14', 8],
    193. ['2016-09-15', 2],
    194. ['2016-09-16', 3],
    195. ['2016-09-19', 4],
    196. ['2016-09-20', 5],
    197. ['2016-09-21', 6],
    198. ['2016-09-22', 7],
    199. ['2016-09-23', 8],
    200. ['2016-09-26', 8],
    201. ['2016-09-27', 9],
    202. ['2016-09-28', 7],
    203. ['2016-09-29', 9],
    204. ['2016-09-30', 7],
    205. ['2016-10-03', 5],
    206. ['2016-10-04', 6],
    207. ['2016-10-05', 9],
    208. ['2016-10-06', 4],
    209. ['2016-10-07', 8],
    210. ['2016-10-10', 9],
    211. ['2016-10-11', 3],
    212. ['2016-10-12', 5],
    213. ['2016-10-13', 5],
    214. ['2016-10-14', 8],
    215. ['2016-10-17', 8],
    216. ['2016-10-18', 9],
    217. ['2016-10-19', 3],
    218. ['2016-10-20', 6],
    219. ['2016-10-21', 12],
    220. ['2016-10-24', 6],
    221. ['2016-10-25', 5],
    222. ['2016-10-26', 5],
    223. ['2016-10-27', 11],
    224. ['2016-10-28', 9],
    225. ['2016-10-31', 3],
    226. ['2016-11-01', 5],
    227. ['2016-11-02', 4],
    228. ['2016-11-03', 9],
    229. ['2016-11-04', 5],
    230. ['2016-11-07', 5],
    231. ['2016-11-08', 7],
    232. ['2016-11-09', 7],
    233. ['2016-11-10', 5],
    234. ['2016-11-11', 3],
    235. ['2016-11-14', 2],
    236. ['2016-11-15', 7],
    237. ['2016-11-16', 5],
    238. ['2016-11-17', 3],
    239. ['2016-11-18', 9],
    240. ['2016-11-21', 11],
    241. ['2016-11-22', 5],
    242. ['2016-11-23', 9],
    243. ['2016-11-24', 4],
    244. ['2016-11-25', 5],
    245. ['2016-11-28', 7],
    246. ['2016-11-29', 9],
    247. ['2016-11-30', 5],
    248. ['2016-12-01', 5],
    249. ['2016-12-02', 6],
    250. ['2016-12-05', 7],
    251. ['2016-12-06', 8],
    252. ['2016-12-07', 5],
    253. ['2016-12-08', 8],
    254. ['2016-12-09', 6],
    255. ['2016-12-12', 6],
    256. ['2016-12-13', 2],
    257. ['2016-12-14', 7],
    258. ['2016-12-15', 5],
    259. ['2016-12-16', 5],
    260. ['2016-12-19', 8],
    261. ['2016-12-20', 8],
    262. ['2016-12-21', 8],
    263. ['2016-12-22', 10],
    264. ['2016-12-23', 7],
    265. ['2016-12-26', 12],
    266. ['2016-12-27', 7],
    267. ['2016-12-28', 6],
    268. ['2016-12-29', 5],
    269. ['2016-12-30', 11]
    270. ]
    271. },
    272. plotarea: {
    273. marginTop: '35%',
    274. marginBottom: '45%'
    275. }
    276. };
    277.  
    278. zingchart.loadModules('calendar', function() {
    279. zingchart.render({
    280. id: 'myChart',
    281. data: chartConfig,
    282. height: 400,
    283. width: '100%'
    284. });
    285. });
    286. </script>
    287. </body>
    288.  
    289. </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'></div>
    13. </body>
    14.  
    15. </html>
    1.  
    1. let chartConfig = {
    2. type: 'calendar',
    3. options: {
    4. month: { // Configure the month labels and styling by month.
    5. values: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], // Set the month labels.
    6. outline: { // Use this object to style the borders of active and inactive months.
    7. borderColor: 'red',
    8. borderWidth: 2
    9. }
    10. },
    11. year: {
    12. text: '2016',
    13. },
    14. values: [
    15. ['2016-02-01', 7],
    16. ['2016-02-02', 12],
    17. ['2016-02-03', 3],
    18. ['2016-02-04', 3],
    19. ['2016-02-05', 9],
    20. ['2016-02-08', 9],
    21. ['2016-02-09', 9],
    22. ['2016-02-10', 4],
    23. ['2016-02-11', 5],
    24. ['2016-02-12', 8],
    25. ['2016-02-15', 8],
    26. ['2016-02-16', 3],
    27. ['2016-02-17', 7],
    28. ['2016-02-18', 5],
    29. ['2016-02-19', 9],
    30. ['2016-02-22', 6],
    31. ['2016-02-23', 5],
    32. ['2016-02-24', 8],
    33. ['2016-02-25', 10],
    34. ['2016-02-26', 4],
    35. ['2016-02-29', 5],
    36. ['2016-03-01', 9],
    37. ['2016-03-02', 9],
    38. ['2016-03-03', 3],
    39. ['2016-03-04', 3],
    40. ['2016-03-07', 4],
    41. ['2016-03-08', 2],
    42. ['2016-03-09', 10],
    43. ['2016-03-10', 9],
    44. ['2016-03-11', 7],
    45. ['2016-03-14', 8],
    46. ['2016-03-15', 7],
    47. ['2016-03-16', 8],
    48. ['2016-03-17', 8],
    49. ['2016-03-18', 2],
    50. ['2016-03-21', 3],
    51. ['2016-03-22', 4],
    52. ['2016-03-23', 5],
    53. ['2016-03-24', 6],
    54. ['2016-03-25', 7],
    55. ['2016-03-28', 8],
    56. ['2016-03-29', 8],
    57. ['2016-03-30', 9],
    58. ['2016-03-31', 7],
    59. ['2016-04-01', 9],
    60. ['2016-04-04', 7],
    61. ['2016-04-05', 5],
    62. ['2016-04-06', 6],
    63. ['2016-04-07', 9],
    64. ['2016-04-08', 4],
    65. ['2016-04-11', 8],
    66. ['2016-04-12', 9],
    67. ['2016-04-13', 3],
    68. ['2016-04-14', 5],
    69. ['2016-04-15', 5],
    70. ['2016-04-18', 8],
    71. ['2016-04-19', 8],
    72. ['2016-04-20', 9],
    73. ['2016-04-21', 3],
    74. ['2016-04-22', 6],
    75. ['2016-04-25', 12],
    76. ['2016-04-26', 6],
    77. ['2016-04-27', 5],
    78. ['2016-04-28', 5],
    79. ['2016-04-29', 11],
    80. ['2016-05-02', 9],
    81. ['2016-05-03', 3],
    82. ['2016-05-04', 5],
    83. ['2016-05-05', 4],
    84. ['2016-05-06', 9],
    85. ['2016-05-09', 5],
    86. ['2016-05-10', 5],
    87. ['2016-05-11', 7],
    88. ['2016-05-12', 7],
    89. ['2016-05-13', 5],
    90. ['2016-05-16', 3],
    91. ['2016-05-17', 2],
    92. ['2016-05-18', 7],
    93. ['2016-05-19', 5],
    94. ['2016-05-20', 3],
    95. ['2016-05-23', 9],
    96. ['2016-05-24', 11],
    97. ['2016-05-25', 5],
    98. ['2016-05-26', 9],
    99. ['2016-05-27', 4],
    100. ['2016-05-30', 5],
    101. ['2016-05-31', 7],
    102. ['2016-06-01', 9],
    103. ['2016-06-02', 5],
    104. ['2016-06-03', 5],
    105. ['2016-06-06', 6],
    106. ['2016-06-07', 7],
    107. ['2016-06-08', 8],
    108. ['2016-06-09', 5],
    109. ['2016-06-10', 8],
    110. ['2016-06-13', 6],
    111. ['2016-06-14', 6],
    112. ['2016-06-15', 2],
    113. ['2016-06-16', 7],
    114. ['2016-06-17', 5],
    115. ['2016-06-20', 5],
    116. ['2016-06-21', 8],
    117. ['2016-06-22', 8],
    118. ['2016-06-23', 8],
    119. ['2016-06-24', 10],
    120. ['2016-06-27', 7],
    121. ['2016-06-28', 12],
    122. ['2016-06-29', 7],
    123. ['2016-06-30', 6],
    124. ['2016-07-01', 12],
    125. ['2016-07-04', 3],
    126. ['2016-07-05', 4],
    127. ['2016-07-06', 9],
    128. ['2016-07-07', 11],
    129. ['2016-07-08', 5],
    130. ['2016-07-11', 5],
    131. ['2016-07-12', 9],
    132. ['2016-07-13', 9],
    133. ['2016-07-14', 9],
    134. ['2016-07-15', 4],
    135. ['2016-07-18', 6],
    136. ['2016-07-19', 5],
    137. ['2016-07-20', 6],
    138. ['2016-07-21', 2],
    139. ['2016-07-22', 5],
    140. ['2016-07-25', 9],
    141. ['2016-07-26', 6],
    142. ['2016-07-27', 6],
    143. ['2016-07-28', 7],
    144. ['2016-07-29', 7],
    145. ['2016-08-01', 12],
    146. ['2016-08-02', 3],
    147. ['2016-08-03', 3],
    148. ['2016-08-04', 9],
    149. ['2016-08-05', 9],
    150. ['2016-08-08', 9],
    151. ['2016-08-09', 4],
    152. ['2016-08-10', 5],
    153. ['2016-08-11', 8],
    154. ['2016-08-12', 8],
    155. ['2016-08-15', 3],
    156. ['2016-08-16', 7],
    157. ['2016-08-17', 5],
    158. ['2016-08-18', 9],
    159. ['2016-08-19', 6],
    160. ['2016-08-22', 5],
    161. ['2016-08-23', 8],
    162. ['2016-08-24', 10],
    163. ['2016-08-25', 4],
    164. ['2016-08-26', 5],
    165. ['2016-08-29', 9],
    166. ['2016-08-30', 9],
    167. ['2016-08-31', 3],
    168. ['2016-09-01', 3],
    169. ['2016-09-02', 4],
    170. ['2016-09-05', 2],
    171. ['2016-09-06', 10],
    172. ['2016-09-07', 9],
    173. ['2016-09-08', 7],
    174. ['2016-09-09', 8],
    175. ['2016-09-12', 7],
    176. ['2016-09-13', 8],
    177. ['2016-09-14', 8],
    178. ['2016-09-15', 2],
    179. ['2016-09-16', 3],
    180. ['2016-09-19', 4],
    181. ['2016-09-20', 5],
    182. ['2016-09-21', 6],
    183. ['2016-09-22', 7],
    184. ['2016-09-23', 8],
    185. ['2016-09-26', 8],
    186. ['2016-09-27', 9],
    187. ['2016-09-28', 7],
    188. ['2016-09-29', 9],
    189. ['2016-09-30', 7],
    190. ['2016-10-03', 5],
    191. ['2016-10-04', 6],
    192. ['2016-10-05', 9],
    193. ['2016-10-06', 4],
    194. ['2016-10-07', 8],
    195. ['2016-10-10', 9],
    196. ['2016-10-11', 3],
    197. ['2016-10-12', 5],
    198. ['2016-10-13', 5],
    199. ['2016-10-14', 8],
    200. ['2016-10-17', 8],
    201. ['2016-10-18', 9],
    202. ['2016-10-19', 3],
    203. ['2016-10-20', 6],
    204. ['2016-10-21', 12],
    205. ['2016-10-24', 6],
    206. ['2016-10-25', 5],
    207. ['2016-10-26', 5],
    208. ['2016-10-27', 11],
    209. ['2016-10-28', 9],
    210. ['2016-10-31', 3],
    211. ['2016-11-01', 5],
    212. ['2016-11-02', 4],
    213. ['2016-11-03', 9],
    214. ['2016-11-04', 5],
    215. ['2016-11-07', 5],
    216. ['2016-11-08', 7],
    217. ['2016-11-09', 7],
    218. ['2016-11-10', 5],
    219. ['2016-11-11', 3],
    220. ['2016-11-14', 2],
    221. ['2016-11-15', 7],
    222. ['2016-11-16', 5],
    223. ['2016-11-17', 3],
    224. ['2016-11-18', 9],
    225. ['2016-11-21', 11],
    226. ['2016-11-22', 5],
    227. ['2016-11-23', 9],
    228. ['2016-11-24', 4],
    229. ['2016-11-25', 5],
    230. ['2016-11-28', 7],
    231. ['2016-11-29', 9],
    232. ['2016-11-30', 5],
    233. ['2016-12-01', 5],
    234. ['2016-12-02', 6],
    235. ['2016-12-05', 7],
    236. ['2016-12-06', 8],
    237. ['2016-12-07', 5],
    238. ['2016-12-08', 8],
    239. ['2016-12-09', 6],
    240. ['2016-12-12', 6],
    241. ['2016-12-13', 2],
    242. ['2016-12-14', 7],
    243. ['2016-12-15', 5],
    244. ['2016-12-16', 5],
    245. ['2016-12-19', 8],
    246. ['2016-12-20', 8],
    247. ['2016-12-21', 8],
    248. ['2016-12-22', 10],
    249. ['2016-12-23', 7],
    250. ['2016-12-26', 12],
    251. ['2016-12-27', 7],
    252. ['2016-12-28', 6],
    253. ['2016-12-29', 5],
    254. ['2016-12-30', 11]
    255. ]
    256. },
    257. plotarea: {
    258. marginTop: '35%',
    259. marginBottom: '45%'
    260. }
    261. };
    262.  
    263. zingchart.loadModules('calendar', function() {
    264. zingchart.render({
    265. id: 'myChart',
    266. data: chartConfig,
    267. height: 400,
    268. width: '100%'
    269. });
    270. });