Log
This was a failed experiement but adding it here for record:
- 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]))
- 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])
- 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!
- Then style in CSS
- 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