Closed mattandryc closed 2 years ago
@mattandryc could you please create a codesandbox reproducing the issue? It would help, thank you.
Thank you @mattandryc, I'll try to have a look at this.
@plouc here's the source for the geoJson in case that's helpful.
https://observablehq.com/@d3/u-s-map
Converted topoJson to geoJson using the method below.
topojson.feature(us, us.objects.nation)
Can anyone point to a nivo ResponsiveChoropleth successfully rendering something other than the world map (world_countries.json)?
@plouc I put together a hacky workaround using dirty-reprojectors in the sandbox below.
https://codesandbox.io/s/nivo-geo-albersusa-demo-uyit8
This is more of a feature request, less of a bug → a more succinct solution would be adding a GeoProjectionType for d3.geoAlbersUsa() on the GeoMap component.
Describe/explain the bug NaN values are pushed to the "d" attribute in path
To Reproduce Use the states.json file → https://github.com/mattandryc/geojson-states with the MyResponsiveChoropleth example from the documentation
import { ResponsiveChoropleth } from '@nivo/geo' import states from ".states.json"
const MyResponsiveChoropleth = ({ data / see data tab / }) => ( <ResponsiveChoropleth features={states.features} .../>
Error message Error: attribute d: Expected number, "…7.7845336326942,NaNL190.17653904…