Skip to content
Advertisement

Choropleth Plotly Indonesia

I’m trying to make Choropleth Indonesia using Plotly, but I still confused about locationmode and geo_scope of Indonesia. How to figure it out?

JavaScript

Advertisement

Answer

plotly is packaged with country and US state geometry. If you want to have a choropleth of Indonesia showing different regions / provinces you need to supply the geojson

In this example I have pretty much used you code as as, using this https://github.com/superpikar/indonesia-geojson geometry.

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement