Public
Edited
Dec 12, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Utilizando [esse notebook](https://observablehq.com/@arbezerra/brazil-map) como base para desenhar o mapa do brasil.
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function Getcolor(sigla) {
var maximo = 13015390; //maior número de acessos
var cor = 255-255*dados[t][sigla]/maximo; //leva cada número a uma escala de cinza.
cor = Math.floor(cor);
return rgb(cor,cor,cor) //retorna essa cor
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
estados = dados.columns.slice(1)
Insert cell
Insert cell
Insert cell
Insert cell
import {howto} from "@d3/example-components"
Insert cell
import {Legend, Swatches} from "@d3/color-legend"
Insert cell
import {howto, altplot} from "@d3/example-components"
Insert cell
import {states_contour,states,path,br,topojson,d3_geo,d3} from "@arbezerra/brazil-map"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more