Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. var options = {
  2. title: 'Rate the Day on a Scale of 1 to 10',
  3. width: 500,
  4. height: 300,
  5. hAxis: {
  6. title:'Datetime',
  7. },
  8. vAxis: {
  9. title:'Rating',
  10.  
  11. minValue: 0,
  12.  
  13. },
  14.  
  15. };
  16. let data = new google.visualization.DataTable(chart_data);
  17. var container = document.getElementById('chart_div');
  18. chart = new google.visualization.LineChart(container);
  19. google.visualization.events.addListener(chart, 'ready', function () {
  20. container.className = null;
  21. });
  22. chart.draw(data, options);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement