• 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. var myConfig = {
    17. type: 'calendar',
    18. options: {
    19. year: {
    20. text: '2016',
    21. visible: false
    22. },
    23. startMonth: 1,
    24. endMonth: 6,
    25. palette: ['none', '#2196F3'],
    26. month: {
    27. item: {
    28. fontColor: 'gray',
    29. fontSize: 9
    30. }
    31. },
    32. weekday: {
    33. values: ['', 'M', '', 'W', '', 'F', ''],
    34. item: {
    35. fontColor: 'gray',
    36. fontSize: 9
    37. }
    38. },
    39. values: [
    40. ['2016-01-01', 3],
    41. ['2016-01-04', 12],
    42. ['2016-01-05', 3],
    43. ['2016-01-06', 4],
    44. ['2016-01-07', 9],
    45. ['2016-01-08', 11],
    46. ['2016-01-11', 5],
    47. ['2016-01-12', 5],
    48. ['2016-01-13', 9],
    49. ['2016-01-14', 9],
    50. ['2016-01-15', 9],
    51. ['2016-01-18', 4],
    52. ['2016-01-19', 6],
    53. ['2016-01-20', 5],
    54. ['2016-01-21', 6],
    55. ['2016-01-22', 2],
    56. ['2016-01-25', 5],
    57. ['2016-01-26', 9],
    58. ['2016-01-27', 6],
    59. ['2016-01-28', 6],
    60. ['2016-01-29', 7],
    61. ['2016-02-01', 7],
    62. ['2016-02-02', 12],
    63. ['2016-02-03', 3],
    64. ['2016-02-04', 3],
    65. ['2016-02-05', 9],
    66. ['2016-02-08', 9],
    67. ['2016-02-09', 9],
    68. ['2016-02-10', 4],
    69. ['2016-02-11', 5],
    70. ['2016-02-12', 8],
    71. ['2016-02-15', 8],
    72. ['2016-02-16', 3],
    73. ['2016-02-17', 7],
    74. ['2016-02-18', 5],
    75. ['2016-02-19', 9],
    76. ['2016-02-22', 6],
    77. ['2016-02-23', 5],
    78. ['2016-02-24', 8],
    79. ['2016-02-25', 10],
    80. ['2016-02-26', 4],
    81. ['2016-02-29', 5],
    82. ['2016-03-01', 9],
    83. ['2016-03-02', 9],
    84. ['2016-03-03', 3],
    85. ['2016-03-04', 3],
    86. ['2016-03-07', 4],
    87. ['2016-03-08', 2],
    88. ['2016-03-09', 10],
    89. ['2016-03-10', 9],
    90. ['2016-03-11', 7],
    91. ['2016-03-14', 8],
    92. ['2016-03-15', 7],
    93. ['2016-03-16', 8],
    94. ['2016-03-17', 8],
    95. ['2016-03-18', 2],
    96. ['2016-03-21', 3],
    97. ['2016-03-22', 4],
    98. ['2016-03-23', 5],
    99. ['2016-03-24', 6],
    100. ['2016-03-25', 7],
    101. ['2016-03-28', 8],
    102. ['2016-03-29', 8],
    103. ['2016-03-30', 9],
    104. ['2016-03-31', 7],
    105. ['2016-04-01', 9],
    106. ['2016-04-04', 7],
    107. ['2016-04-05', 5],
    108. ['2016-04-06', 6],
    109. ['2016-04-07', 9],
    110. ['2016-04-08', 4],
    111. ['2016-04-11', 8],
    112. ['2016-04-12', 9],
    113. ['2016-04-13', 3],
    114. ['2016-04-14', 5],
    115. ['2016-04-15', 5],
    116. ['2016-04-18', 8],
    117. ['2016-04-19', 8],
    118. ['2016-04-20', 9],
    119. ['2016-04-21', 3],
    120. ['2016-04-22', 6],
    121. ['2016-04-25', 12],
    122. ['2016-04-26', 6],
    123. ['2016-04-27', 5],
    124. ['2016-04-28', 5],
    125. ['2016-04-29', 11],
    126. ['2016-05-02', 9],
    127. ['2016-05-03', 3],
    128. ['2016-05-04', 5],
    129. ['2016-05-05', 4],
    130. ['2016-05-06', 9],
    131. ['2016-05-09', 5],
    132. ['2016-05-10', 5],
    133. ['2016-05-11', 7],
    134. ['2016-05-12', 7],
    135. ['2016-05-13', 5],
    136. ['2016-05-16', 3],
    137. ['2016-05-17', 2],
    138. ['2016-05-18', 7],
    139. ['2016-05-19', 5],
    140. ['2016-05-20', 3],
    141. ['2016-05-23', 9],
    142. ['2016-05-24', 11],
    143. ['2016-05-25', 5],
    144. ['2016-05-26', 9],
    145. ['2016-05-27', 4],
    146. ['2016-05-30', 5],
    147. ['2016-05-31', 7],
    148. ['2016-06-01', 9],
    149. ['2016-06-02', 5],
    150. ['2016-06-03', 5],
    151. ['2016-06-06', 6],
    152. ['2016-06-07', 7],
    153. ['2016-06-08', 8],
    154. ['2016-06-09', 5],
    155. ['2016-06-10', 8],
    156. ['2016-06-13', 6],
    157. ['2016-06-14', 6],
    158. ['2016-06-15', 2],
    159. ['2016-06-16', 7],
    160. ['2016-06-17', 5],
    161. ['2016-06-20', 5],
    162. ['2016-06-21', 8],
    163. ['2016-06-22', 8],
    164. ['2016-06-23', 8],
    165. ['2016-06-24', 10],
    166. ['2016-06-27', 7],
    167. ['2016-06-28', 12],
    168. ['2016-06-29', 7],
    169. ['2016-06-30', 6],
    170. ]
    171. },
    172. labels: [{ //Lefthand Label (container portion)
    173. borderColor: 'gray',
    174. borderWidth: 1,
    175. x: '8%',
    176. y: '60%',
    177. width: '40%',
    178. height: '30%'
    179. },
    180. { //Lefthand Label (top portion)
    181. text: 'Daily Contribution',
    182. fontColor: '#212121',
    183. textAlign: 'center',
    184. x: '10%',
    185. y: '65%',
    186. width: '36%'
    187. },
    188. { //Lefthand Label (middle portion)
    189. text: '%plot-value',
    190. fontColor: '#2196F3',
    191. fontFamily: 'Georgia',
    192. fontSize: 35,
    193. textAlign: 'center',
    194. x: '10%',
    195. y: '68%',
    196. width: '36%'
    197. },
    198. // Note: the bottom portion of the Bottom-Left Label is the fixed tooltip, below.
    199.  
    200. { //Rightside Label (container portion)
    201. borderColor: 'gray',
    202. borderWidth: 1,
    203. x: '52%',
    204. y: '60%',
    205. width: '40%',
    206. height: '30%',
    207. },
    208. { //Rightside Label (top portion)
    209. text: 'Total Contributions',
    210. fontColor: '#212121',
    211. textAlign: 'center',
    212. x: '54%',
    213. y: '65%',
    214. width: '36%'
    215. },
    216. { //Rightside Label (middle portion)
    217. text: '1414',
    218. fontColor: '#2196F3',
    219. fontFamily: 'Georgia',
    220. fontSize: 35,
    221. textAlign: 'center',
    222. x: '54%',
    223. y: '68%',
    224. width: '36%'
    225. },
    226. { //Rightside Label (bottom portion)
    227. text: 'Jan 1 - Jun 30',
    228. fontColor: '#212121',
    229. padding: 2,
    230. textAlign: 'center',
    231. x: '54%',
    232. y: '80%',
    233. width: '36%'
    234. }
    235. ],
    236.  
    237. tooltip: { //Lefthand Label (bottom portion)
    238. text: '%data-day',
    239. backgroundColor: 'none',
    240. borderColor: 'none',
    241. fontColor: '#212121',
    242. padding: 2,
    243. //textAlign: 'center',
    244. align: 'center',
    245. sticky: true,
    246. timeout: 30000,
    247. x: '10%',
    248. y: '80%',
    249. width: '36%'
    250. },
    251.  
    252. plotarea: {
    253. marginTop: '15%',
    254. marginBottom: '55%',
    255. marginLeft: '8%',
    256. marginRight: '8%'
    257. }
    258. };
    259.  
    260. zingchart.loadModules('calendar', function() {
    261. zingchart.render({
    262. id: 'myChart',
    263. data: myConfig,
    264. height: 400,
    265. width: '100%'
    266. });
    267. });
    268. </script>
    269. </body>
    270.  
    271. </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. var myConfig = {
    2. type: 'calendar',
    3. options: {
    4. year: {
    5. text: '2016',
    6. visible: false
    7. },
    8. startMonth: 1,
    9. endMonth: 6,
    10. palette: ['none', '#2196F3'],
    11. month: {
    12. item: {
    13. fontColor: 'gray',
    14. fontSize: 9
    15. }
    16. },
    17. weekday: {
    18. values: ['', 'M', '', 'W', '', 'F', ''],
    19. item: {
    20. fontColor: 'gray',
    21. fontSize: 9
    22. }
    23. },
    24. values: [
    25. ['2016-01-01', 3],
    26. ['2016-01-04', 12],
    27. ['2016-01-05', 3],
    28. ['2016-01-06', 4],
    29. ['2016-01-07', 9],
    30. ['2016-01-08', 11],
    31. ['2016-01-11', 5],
    32. ['2016-01-12', 5],
    33. ['2016-01-13', 9],
    34. ['2016-01-14', 9],
    35. ['2016-01-15', 9],
    36. ['2016-01-18', 4],
    37. ['2016-01-19', 6],
    38. ['2016-01-20', 5],
    39. ['2016-01-21', 6],
    40. ['2016-01-22', 2],
    41. ['2016-01-25', 5],
    42. ['2016-01-26', 9],
    43. ['2016-01-27', 6],
    44. ['2016-01-28', 6],
    45. ['2016-01-29', 7],
    46. ['2016-02-01', 7],
    47. ['2016-02-02', 12],
    48. ['2016-02-03', 3],
    49. ['2016-02-04', 3],
    50. ['2016-02-05', 9],
    51. ['2016-02-08', 9],
    52. ['2016-02-09', 9],
    53. ['2016-02-10', 4],
    54. ['2016-02-11', 5],
    55. ['2016-02-12', 8],
    56. ['2016-02-15', 8],
    57. ['2016-02-16', 3],
    58. ['2016-02-17', 7],
    59. ['2016-02-18', 5],
    60. ['2016-02-19', 9],
    61. ['2016-02-22', 6],
    62. ['2016-02-23', 5],
    63. ['2016-02-24', 8],
    64. ['2016-02-25', 10],
    65. ['2016-02-26', 4],
    66. ['2016-02-29', 5],
    67. ['2016-03-01', 9],
    68. ['2016-03-02', 9],
    69. ['2016-03-03', 3],
    70. ['2016-03-04', 3],
    71. ['2016-03-07', 4],
    72. ['2016-03-08', 2],
    73. ['2016-03-09', 10],
    74. ['2016-03-10', 9],
    75. ['2016-03-11', 7],
    76. ['2016-03-14', 8],
    77. ['2016-03-15', 7],
    78. ['2016-03-16', 8],
    79. ['2016-03-17', 8],
    80. ['2016-03-18', 2],
    81. ['2016-03-21', 3],
    82. ['2016-03-22', 4],
    83. ['2016-03-23', 5],
    84. ['2016-03-24', 6],
    85. ['2016-03-25', 7],
    86. ['2016-03-28', 8],
    87. ['2016-03-29', 8],
    88. ['2016-03-30', 9],
    89. ['2016-03-31', 7],
    90. ['2016-04-01', 9],
    91. ['2016-04-04', 7],
    92. ['2016-04-05', 5],
    93. ['2016-04-06', 6],
    94. ['2016-04-07', 9],
    95. ['2016-04-08', 4],
    96. ['2016-04-11', 8],
    97. ['2016-04-12', 9],
    98. ['2016-04-13', 3],
    99. ['2016-04-14', 5],
    100. ['2016-04-15', 5],
    101. ['2016-04-18', 8],
    102. ['2016-04-19', 8],
    103. ['2016-04-20', 9],
    104. ['2016-04-21', 3],
    105. ['2016-04-22', 6],
    106. ['2016-04-25', 12],
    107. ['2016-04-26', 6],
    108. ['2016-04-27', 5],
    109. ['2016-04-28', 5],
    110. ['2016-04-29', 11],
    111. ['2016-05-02', 9],
    112. ['2016-05-03', 3],
    113. ['2016-05-04', 5],
    114. ['2016-05-05', 4],
    115. ['2016-05-06', 9],
    116. ['2016-05-09', 5],
    117. ['2016-05-10', 5],
    118. ['2016-05-11', 7],
    119. ['2016-05-12', 7],
    120. ['2016-05-13', 5],
    121. ['2016-05-16', 3],
    122. ['2016-05-17', 2],
    123. ['2016-05-18', 7],
    124. ['2016-05-19', 5],
    125. ['2016-05-20', 3],
    126. ['2016-05-23', 9],
    127. ['2016-05-24', 11],
    128. ['2016-05-25', 5],
    129. ['2016-05-26', 9],
    130. ['2016-05-27', 4],
    131. ['2016-05-30', 5],
    132. ['2016-05-31', 7],
    133. ['2016-06-01', 9],
    134. ['2016-06-02', 5],
    135. ['2016-06-03', 5],
    136. ['2016-06-06', 6],
    137. ['2016-06-07', 7],
    138. ['2016-06-08', 8],
    139. ['2016-06-09', 5],
    140. ['2016-06-10', 8],
    141. ['2016-06-13', 6],
    142. ['2016-06-14', 6],
    143. ['2016-06-15', 2],
    144. ['2016-06-16', 7],
    145. ['2016-06-17', 5],
    146. ['2016-06-20', 5],
    147. ['2016-06-21', 8],
    148. ['2016-06-22', 8],
    149. ['2016-06-23', 8],
    150. ['2016-06-24', 10],
    151. ['2016-06-27', 7],
    152. ['2016-06-28', 12],
    153. ['2016-06-29', 7],
    154. ['2016-06-30', 6],
    155. ]
    156. },
    157. labels: [{ //Lefthand Label (container portion)
    158. borderColor: 'gray',
    159. borderWidth: 1,
    160. x: '8%',
    161. y: '60%',
    162. width: '40%',
    163. height: '30%'
    164. },
    165. { //Lefthand Label (top portion)
    166. text: 'Daily Contribution',
    167. fontColor: '#212121',
    168. textAlign: 'center',
    169. x: '10%',
    170. y: '65%',
    171. width: '36%'
    172. },
    173. { //Lefthand Label (middle portion)
    174. text: '%plot-value',
    175. fontColor: '#2196F3',
    176. fontFamily: 'Georgia',
    177. fontSize: 35,
    178. textAlign: 'center',
    179. x: '10%',
    180. y: '68%',
    181. width: '36%'
    182. },
    183. // Note: the bottom portion of the Bottom-Left Label is the fixed tooltip, below.
    184.  
    185. { //Rightside Label (container portion)
    186. borderColor: 'gray',
    187. borderWidth: 1,
    188. x: '52%',
    189. y: '60%',
    190. width: '40%',
    191. height: '30%',
    192. },
    193. { //Rightside Label (top portion)
    194. text: 'Total Contributions',
    195. fontColor: '#212121',
    196. textAlign: 'center',
    197. x: '54%',
    198. y: '65%',
    199. width: '36%'
    200. },
    201. { //Rightside Label (middle portion)
    202. text: '1414',
    203. fontColor: '#2196F3',
    204. fontFamily: 'Georgia',
    205. fontSize: 35,
    206. textAlign: 'center',
    207. x: '54%',
    208. y: '68%',
    209. width: '36%'
    210. },
    211. { //Rightside Label (bottom portion)
    212. text: 'Jan 1 - Jun 30',
    213. fontColor: '#212121',
    214. padding: 2,
    215. textAlign: 'center',
    216. x: '54%',
    217. y: '80%',
    218. width: '36%'
    219. }
    220. ],
    221.  
    222. tooltip: { //Lefthand Label (bottom portion)
    223. text: '%data-day',
    224. backgroundColor: 'none',
    225. borderColor: 'none',
    226. fontColor: '#212121',
    227. padding: 2,
    228. //textAlign: 'center',
    229. align: 'center',
    230. sticky: true,
    231. timeout: 30000,
    232. x: '10%',
    233. y: '80%',
    234. width: '36%'
    235. },
    236.  
    237. plotarea: {
    238. marginTop: '15%',
    239. marginBottom: '55%',
    240. marginLeft: '8%',
    241. marginRight: '8%'
    242. }
    243. };
    244.  
    245. zingchart.loadModules('calendar', function() {
    246. zingchart.render({
    247. id: 'myChart',
    248. data: myConfig,
    249. height: 400,
    250. width: '100%'
    251. });
    252. });