Hello!
I need help creating a map with users in Brazil.
I'm creating a dashboard with users, and each user has a value in the STATE column in my database. With this data, I can do a sum and know how many users I have from each state.
Now, my DATA is
[{
type: 'choropleth',
locationmode: 'BRA-states',
locations: ['SP','RJ','AM'],
z: ['10','20','30'], // Coluna do conjunto de dados com os valores numéricos que você deseja plotar
colorscale: 'Viridis', // Escolha uma escala de cores (pode ser alterada)
colorbar: {
title: 'Título da barra de cores',
ticksuffix: 'Unidade', // Opcional - Sufixo para os valores da barra de cores
},
name: 'brasil data'
}]
And my layout is
{'showlegend': false,
'geo': {
'scope': 'south america',
showland: true,
landcolor: 'rgb(250,250,250)',
subunitcolor: 'rgb(217,217,137)',
countrycolor: 'rgb(217,217,217)',
countrywidth: 0.5,
subunitwidth: 1
},
"margin": {
"l": 5,
"r": 5,
"t": 5,
"b": 5,
"pad": 2
},
}
Where can I search to better understand how I show the map of Brazil as if it were an SVG, or something like that to display a color map with the users that are in my table?
Tks!