quantiles_ratio = function(numerator,denominator,year){
let q=[]
if(denominator!="area"){
q = [0.000,0.125,0.250,0.375,0.500,0.625,0.750,0.875,1.000].map(q => d3.quantile(datasample1000,q, r=> r[`${numerator}_${year}`]/r[`${denominator}_${year}`]))
}else{
q = [0.000,0.125,0.250,0.375,0.500,0.625,0.750,0.875,1.000].map(q => d3.quantile(datasample1000,q, r=> r[`${numerator}_${year}`]/(200*200)*100000))
}
return q;
}