Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4.  
  5. <head>
  6.  
  7. <link rel="stylesheet" type="text/css" href="sf.css">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <title>SF Emergency Dispatch</title>
  10.  
  11. <script type="text/javascript">
  12. window.onload = function (){
  13. var chart = new CanvasJS.Chart("chartContainer",
  14. {
  15. title:{
  16. text: "San Franscico Call Type Per Zip Code"
  17. },
  18. axisY:
  19. {
  20. title: "Number of Calls",
  21. maximum: 1000
  22. },
  23. data: [
  24. {
  25. type: "bar",
  26. showInLegend: true,
  27. legendText: "Alarms",
  28. color: "red",
  29. dataPoints:[
  30. {y: 148, label: "94102"},
  31. {y: 96, label: "94103"},
  32. {y: 6, label: "94104"},
  33. {y: 60, label: "94105"},
  34. {y: 57, label: "94107"),
  35. {y: 68, label: "94108"},
  36. {y: 71, label: "94109"},
  37. {y: 75, label: "94110"},
  38. {y: 15, label: "94111"},
  39. {y: 21, label: "94112"},
  40. {y: 42, label: "94114"},
  41. {y: 66, label: "94115"},
  42. {y: 12, label: "94116"},
  43. {y: 32, label: "94117"},
  44. {y: 25, label: "94118"},
  45. {y: 29, label: "94121"},
  46. {y: 28, label: "94122"},
  47. {y: 29, label: "94123"},
  48. {y: 28, label: "94124"},
  49. {y: 3, label: "94127"},
  50. {y: 10, label: "94129"},
  51. {y: 3, label: "94130"},
  52. {y: 28, label: "94131"},
  53. {y: 31, label: "94132"},
  54. {y: 44, label: "94133"},
  55. {y: 16, label: "94134"},
  56. {y: 18, label: "94158"}
  57. ]
  58. },
  59. {
  60. type: "bar",
  61. showInLegend: true,
  62. legendText: "Citizen Assist / Service Call",
  63. color: "blue",
  64. dataPoints: [
  65. {y: 14, label: "94102"},
  66. {y: 6, label: "94103"},
  67. {y: 1, label: "94104"},
  68. {y: 3, label: "94105"},
  69. {y: 7, label: "94107"),
  70. {y: 3, label: "94108"},
  71. {y: 12, label: "94109"},
  72. {y: 8, label: "94110"},
  73. {y: 0, label: "94111"},
  74. {y: 4, label: "94112"},
  75. {y: 7, label: "94114"},
  76. {y: 8, label: "94115"},
  77. {y: 4, label: "94116"},
  78. {y: 1, label: "94117"},
  79. {y: 5, label: "94118"},
  80. {y: 4, label: "94121"},
  81. {y: 3, label: "94122"},
  82. {y: 0, label: "94123"},
  83. {y: 2, label: "94124"},
  84. {y: 1, label: "94127"},
  85. {y: 0, label: "94129"},
  86. {y: 1, label: "94130"},
  87. {y: 6, label: "94131"},
  88. {y: 3, label: "94132"},
  89. {y: 7, label: "94133"},
  90. {y: 3, label: "94134"},
  91. {y: 1, label: "94158"}
  92. ]
  93. },
  94. {
  95. type: "bar",
  96. showInLegend: true,
  97. legendText: "Electrical Hazard",
  98. color: "orange",
  99. dataPoints: [
  100. {y: 1, label: "94102"},
  101. {y: 0, label: "94103"},
  102. {y: 0, label: "94104"},
  103. {y: 0, label: "94105"},
  104. {y: 0, label: "94107"),
  105. {y: 0, label: "94108"},
  106. {y: 1, label: "94109"},
  107. {y: 2, label: "94110"},
  108. {y: 0, label: "94111"},
  109. {y: 2, label: "94112"},
  110. {y: 0, label: "94114"},
  111. {y: 6, label: "94115"},
  112. {y: 1, label: "94116"},
  113. {y: 2, label: "94117"},
  114. {y: 1, label: "94118"},
  115. {y: 4, label: "94121"},
  116. {y: 1, label: "94122"},
  117. {y: 1, label: "94123"},
  118. {y: 1, label: "94124"},
  119. {y: 2, label: "94127"},
  120. {y: 0, label: "94129"},
  121. {y: 0, label: "94130"},
  122. {y: 1, label: "94131"},
  123. {y: 0, label: "94132"},
  124. {y: 0, label: "94133"},
  125. {y: 1, label: "94134"},
  126. {y: 0, label: "94158"}
  127. ]
  128. },
  129. {
  130. type: "bar",
  131. showInLegend: true,
  132. legendText: "Elevator / Escalator Rescue",
  133. color: "green",
  134. dataPoints:[
  135. {y: 3, label: "94102"},
  136. {y: 2, label: "94103"},
  137. {y: 1, label: "94104"},
  138. {y: 0, label: "94105"},
  139. {y: 2, label: "94107"),
  140. {y: 3, label: "94108"},
  141. {y: 5, label: "94109"},
  142. {y: 0, label: "94110"},
  143. {y: 0, label: "94111"},
  144. {y: 0, label: "94112"},
  145. {y: 0, label: "94114"},
  146. {y: 3, label: "94115"},
  147. {y: 0, label: "94116"},
  148. {y: 1, label: "94117"},
  149. {y: 0, label: "94118"},
  150. {y: 0, label: "94121"},
  151. {y: 0, label: "94122"},
  152. {y: 0, label: "94123"},
  153. {y: 0, label: "94124"},
  154. {y: 0, label: "94127"},
  155. {y: 0, label: "94129"},
  156. {y: 0, label: "94130"},
  157. {y: 0, label: "94131"},
  158. {y: 1, label: "94132"},
  159. {y: 0, label: "94133"},
  160. {y: 0, label: "94134"},
  161. {y: 0, label: "94158"}
  162. ]
  163. }
  164. ]
  165. });
  166. chart.render(); /* makes the chart on screen */
  167. }
  168. </script>
  169.  
  170. </head>
  171.  
  172. <body>
  173.  
  174. <button class="tablink" onclick="openPage('trends', this, 'lime')" id="defaultOpen">Data</button>
  175. <button class="tablink" onclick="openPage('analysis', this, 'lime')">Analysis</button>
  176. <button class="tablink" onclick="openPage('stats', this, 'lime')">Stats</button>
  177.  
  178.  
  179. <div id="trends" class="tabcontent">
  180. <h1 id="header"><strong>Trends</strong></h1>
  181. <h3 id="data"><strong>Number of Calls Per Zip Code</strong></h3>
  182. <div id="chartContainer" style="height: 800px; width: 100%;">
  183. </div>
  184. <script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
  185. <h3 id="data"><strong></strong></h3>
  186. <h3 id="data"><strong></strong></h3>
  187. </div>
  188. <div id="analysis" class="tabcontent">
  189. <h1 id="header"><strong>Analysis</strong></h1>
  190. <p>Test</p>
  191. </div>
  192. <div id="stats" class="tabcontent">
  193. <h1 id="header"><strong>Stats</strong></h1>
  194. <p>Test</p>
  195. </div>
  196.  
  197. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement