Skip to content

Instantly share code, notes, and snippets.

@jamestyack
Last active August 29, 2015 14:14
Show Gist options
  • Save jamestyack/545a2b7db2f57465cef6 to your computer and use it in GitHub Desktop.
Save jamestyack/545a2b7db2f57465cef6 to your computer and use it in GitHub Desktop.
evographs import
<script>
evoGraphOptions = {
title: "Last 12 months: total days in month where elevator outage was reported <% if station %>at <%= station['stop_name'] %><% end %>",
data: [],
width: 700,
height: 350
};
$.get("/septa/elevator/outagedayslast12months/<%= station['_id'] %>", function( outageData ) {
$.each(outageData, function( index, value ) {
evoGraphOptions.data.push(value.month, value.outageDays)
});
createEvoGraph (evoGraphOptions); //create graph
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment