diff --git a/compass/public/assets/battery.js b/compass/public/assets/battery.js index 4700c2c..2ffd2f0 100644 --- a/compass/public/assets/battery.js +++ b/compass/public/assets/battery.js @@ -5,12 +5,12 @@ function pointFromGeoJSON(geo) { } function showBatteryGraph(response) { - + var data = response.linestring; - + var batteryStateBands = []; var buckets = data.properties.map(function(d){return d.battery_state}).findRanges(); - + for(var i in buckets) { for(var j=0; j