Skip to content

Instantly share code, notes, and snippets.

View mdeutsch's full-sized avatar

Michael Deutsch mdeutsch

View GitHub Profile
@mdeutsch
mdeutsch / timeline.html.erb
Created May 4, 2015 01:08
Generating a timeline from a log file
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization',
'version':'1','packages':['timeline']}]}"></script>
<script type="text/javascript">
google.setOnLoadCallback(drawChart);
function drawChart() {
var container = document.getElementById('timeline');
var chart = new google.visualization.Timeline(container);