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