Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
  4. <script type="text/javascript">
  5. google.charts.load("current", {packages:["calendar"]});
  6. google.charts.setOnLoadCallback(drawChart);
  7.  
  8. function drawChart() {
  9. var dataTable = new google.visualization.DataTable();
  10. dataTable.addColumn({ type: 'date', id: 'Date' });
  11. dataTable.addColumn({ type: 'number', id: 'Won/Loss' });
  12. dataTable.addRows([
  13. [ new Date(2018, 9, 25), 1 ],
  14. [ new Date(2018, 10, 7), 1 ],
  15. [ new Date(2018, 10, 9), 9 ],
  16. [ new Date(2018, 10, 10), 1 ],
  17. [ new Date(2018, 10, 11), 20 ],
  18. [ new Date(2018, 10, 15), 7 ],
  19. [ new Date(2018, 10, 16), 2 ],
  20. [ new Date(2018, 10, 18), 15 ],
  21. [ new Date(2018, 10, 21), 3 ],
  22. [ new Date(2018, 10, 24), 1 ],
  23. [ new Date(2018, 10, 30), 1 ],
  24. [ new Date(2018, 11, 1), 10 ],
  25. [ new Date(2018, 11, 2), 13 ],
  26. [ new Date(2018, 11, 3), 3 ],
  27. [ new Date(2018, 11, 4), 29 ],
  28. ]);
  29.  
  30. var chart = new google.visualization.Calendar(document.getElementById('calendar_basic'));
  31.  
  32. var options = {
  33. title: "",
  34. height: 350,
  35. noDataPattern: {
  36. backgroundColor: '#000000',
  37. color: '#999999'
  38. }
  39. };
  40.  
  41. chart.draw(dataTable, options);
  42. }
  43. </script>
  44. </head>
  45. <body>
  46. <div id="calendar_basic" style="width: 1000px; height: 350px;"></div>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement