Skip to content

v1.5

Compare
Choose a tag to compare
@balladaniel balladaniel released this 22 Dec 21:08
· 8 commits to main since this release
8efdb27

Normalization on the polygons_c example

New features

  • Data normalization (option normalizeByField)
    • data normalization by another attribute field in GeoJSON, to normalize values of chosen field by
    • useful for any dataset that is usually shown in a normalized form, e.g. a population density map
    • normalizeByField expects a string of an attribute field that exists in GeoJSON, in a similar fashion to field

Improvements, fixes

  • values are now processed and loaded into an object (features), with all their attributes for later use
  • features.finalvalue now contains a processed value to base classification on (finalvalue is either untouched or normalized already)
  • added some checks for null, set more defaults in-code (missing fill color in point/size symbols, stroke color in line/width mode)
  • debug message updates, code cleanup
  • updated readme
  • updated screenshot
  • examples:
    • all: added banner image to examples' info panels, adjusted their text formatting
    • polygons_c.html: now uses fields population2022 as base and areakm2 as normalization attribute
    • combined.html: line features show river discharge for Yukon and its tributaries now, their tooltips display m³/s and cuft/s values, added feature section highlighting
    • rivers_yukon.geojson dataset: now contains river discharge for Yukon and its tributaries