Day Thirteen

30th June 2021

Number of SDA properties within SA3s | viewed as a choropleth map

Log

This was a failed experiement but adding it here for record:

  1. Mapped data to access later when working out colour
    const data_mapped = new Map(SA3_SDA_data.map(d => [d.SA3_NAME16, d.total_dwellings_SA3]))
  2. Added in line that worked out the fill for each SA3 based on the number of dwellings as stated in the data file
    const scale_color = d3.scaleQuantize([min_dwelling, max_dwelling], d3.schemeBlues[9])
  3. Could add in a filrer here to make sure that the labels in the dareker areas are a lighter colour...but this can be for another day!
  4. Then style in CSS
  5. Important to note - I did not use this in the project as it didn;t fit in with the whole story - but good to record here for future reference