Public
Edited
May 17, 2022
Insert cell
Insert cell
Insert cell
Insert cell
FinalChart()
Insert cell
Insert cell
Insert cell
Insert cell
colors = new Object({
mainColor: '#000000',
secondaryColor: '#000000',
colorScheme: d3.interpolatePuBuGn,
highlightColor: '#cc474b'
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
final_data = {
var final_object = {
info_estado: {nome: 'Sergipe', uf: 'SE'},
info_municipios: {}
}

dados_rais_se.map((d,i) => {

var valueCalculated = d.rendamedia
var textAnnotation = texts[language].label1 + ": " + localized[language].format("($,.0f")(valueCalculated)
final_object.info_municipios[d.id_municipio] = {
territory_id: d.id_municipio,
territory_name: d.nome_municipio,
state_code: 'SE',
value: valueCalculated,
annotation: textAnnotation
}
})

return final_object
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {createAnnotation} from '@adolfoguimaraes/annotations'
Insert cell
import {Annotations} from '@adolfoguimaraes/annotations_simple'
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