Last active
August 29, 2015 14:14
-
-
Save jamestyack/545a2b7db2f57465cef6 to your computer and use it in GitHub Desktop.
evographs import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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