Repository navigation
Fixes
- Exact zeros in
statData.statData().set()andsetData()stored{ value: 0 }(and{ value: '' }) nested as{ value: { value: 0 } }, so the region was classified asNaN: grey on choropleth maps, and on proportional-symbol maps with a colour encoding the colour function threw, leaving later symbols unfilled and stopping the dorling layout. A stat object is now detected by itsvaluekey rather than a truthy value. Reported and fixed by @aborruso (#191, #192).
Example:
const sd = eurostatmap.map('choropleth').statData()
sd.setData({ A: { value: 0, status: '' }, B: 0, C: { value: 1, status: 'e' } })
sd.get('A') // { value: 0, status: '' } (was { value: { value: 0, status: '' } })