plotly / react-plotly.js

A plotly.js React component from Plotly 📈
MIT License
1.01k stars 135 forks source link

Choropleth plot doesn't appear to have geojson prop #304

Open geoguide opened 1 year ago

geoguide commented 1 year ago

When I'm looking at the documentation it looks like I can set the locationmode: geojson-id and for the type: choropleth and should then be able to set the geojson prop to a geojson object, but that property does not appear to exist on the component, it certainly does not on the typescript. Any advice?

alexcjohnson commented 1 year ago

Yes, that should work. What plotly.js version are you using this with? If it's a recent one you can see it when you hover on the logo in the toolbar:

Screenshot 2022-12-01 at 18 29 02

I don't know much about the typescript definitions and how up-to-date they are, those are maintained by a third party, not Plotly.

geoguide commented 1 year ago

Thanks

I'm using 2.16.3

I can try to bypass the typescript to get it to work, it's hard when it's not behaving as expected and not throwing errors.