Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ABSOD authored Dec 23, 2024
1 parent 0211fd3 commit c88e238
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions assets/js/funct.js
Original file line number Diff line number Diff line change
Expand Up @@ -2657,16 +2657,12 @@ var fips_list = parseInt(fips);
var yr_list = prevyear + "," + yrvalue + "," + year10;

//Generate url
if(fips == "000") {
var urlstr = "https://gis.dola.colorado.gov/lookups/sya_regions?reg_num=" + fips_list + "&year=" + yr_list + "&choice=single"
} else {

var urlstr = "https://gis.dola.colorado.gov/lookups/sya?county=" + fips_list + "&year=" + yr_list + "&choice=single&group=3"
}


var totaldata = [];

d3.json(urlstr).then(function(data){

data.forEach(function(obj) {
if(obj.age >= 0 && obj.age <= 17) {obj.age_cat = "0 to 17"; }
if(obj.age >= 18 && obj.age <= 24) {obj.age_cat = "18 to 24";}
Expand All @@ -2690,6 +2686,7 @@ for (let [key, value] of total_ann) {

var total_ann_flat = total_ann_tmp.sort(function(a, b){ return d3.ascending(a['year'], b['year']); });


var total_age_tmp = [];
for (let [key1, value] of total_age) {
for (let[key2, value2] of value) {
Expand Down

0 comments on commit c88e238

Please sign in to comment.