We have a function, create_aggregate_map, in vector_utils that generates Altair choropleth map JSON for a vector attribute. This function is currently used by both the SWY and AWY reporter modules, but UMH, UNA, and Urban Cooling each have their own similar functions. It would be nice if the function in vector_utils was flexible enough to suit the needs of all of these reports (and any others doing a similar thing that I may have missed).
The function in vector_utils also ought to accept a list of fields from the same data source and return a single JSON of concatenated plots. This would improve report load times.
We have a function,
create_aggregate_map, invector_utilsthat generates Altair choropleth map JSON for a vector attribute. This function is currently used by both the SWY and AWY reporter modules, but UMH, UNA, and Urban Cooling each have their own similar functions. It would be nice if the function invector_utilswas flexible enough to suit the needs of all of these reports (and any others doing a similar thing that I may have missed).The function in
vector_utilsalso ought to accept a list of fields from the same data source and return a single JSON of concatenated plots. This would improve report load times.