Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Feb 24th, 2013  |  syntax: None  |  size: 0.60 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [['Host Name', 'No. of Events'], [u'12.23.21.23', 0], [u'2.152.0.2', 2]]
  2.        
  3. var data = google.visualization.arrayToDataTable([
  4.     ['Host_name', 'No of events'],
  5.     ['12.23.21.23', 0],
  6.     ['2.152.0.2', 2]
  7.     ]);
  8.        
  9. var data = google.visualization.arrayToDataTable({{list_a}});
  10.        
  11. var data = google.visualization.arrayToDataTable([['Host Name', 'No. of Events'], [u'12.23.21.23', 0], [u'2.152.0.2', 2]]);
  12.        
  13. '
  14. ['12.23.21.23', 0]  See the quotes on ip address field but not to the next field
  15.        
  16. var data = google.visualization.arrayToDataTable({{ list_a|json|safe }})