tokyo =FileAttachment('data/tokyo-palette.json').json()tokyo_rev = tokyo.slice().reverse() all_scaled_in.date= all_scaled_in.date.map(x =>Date.parse(x))
allScaled =transpose(all_scaled_in)getDates = d => d.dateallDates = d3.map(allScaled, getDates)
Milano Air Quality
This dashboard displays the air quality in the city of Milano, Italy.
All measurements come from the Open Data Portal of the city of Milan, with minor fixes to the measurement units of policyclic aromatic compounds, reported at concentrations 1000 times higher than the expected range, and of carbon monoxide, reported at concentrations 1000 smaller than the expected range.
Besides displaying raw measurements of air pollutants concentration, this dashboards displays percentages of EU target limits, as documented here. I chose to use the tightest limits reported.
viewof start = Inputs.date({label:"Start date →",value: d3.min(allDates),min: d3.min(allDates),max: d3.max(allDates)})
viewof end = Inputs.date({label:"End date →",value: d3.max(allDates),min: start,max: d3.max(allDates)})
This dashboard was made and is maintained by Otho Mantegazza, feel free to contact me for any question or suggestion. You can find the source code on Github.