1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00

fixed charts

This commit is contained in:
2015-12-20 21:50:17 -06:00
parent daab977655
commit 31ad768941
3 changed files with 11 additions and 6 deletions

View File

@@ -1,8 +1,16 @@
$(document).ready(function(){
var yearChart_year = $("#option-year").val();
displayChart("#info-chart-year", "#legend-year", yearChart_year, null);
displayChart("#info-chart-year", "#legend-year", 2015, null);
displayChart("#info-chart-month", "#legend-month", 2015, 9);
var text = $("#option-month option:selected").text();
console.log(text);
var month = $("#option-month").val();
var monthChart_year = text.substring(text.length, text.length -4);
displayChart("#info-chart-month", "#legend-month", monthChart_year, month);
});
$("#option-year").on("change", function(){