Published
Edited
Dec 8, 2018
Importers
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
md`---
## Incorporação externa

Para adicionar esta visualização a páginas html externas, utilize a _tag_ ___script___ descrita abaixo, copiando-a e colando-a ao código-fonte de destino.

Esta forma de incoporação permite que atualizações feitas neste __notebook__ sejam refletidas imediatamente nas reproduções em outros locais.

(Requer conexão com a internet.)

<script type="module">
import {Runtime, Inspector} from "https://unpkg.com/@observablehq/notebook-runtime?module";
import notebook from "https://api.observablehq.com/@lucasbarcellosoliveira/museu-nacional-wikicommons.js";
Runtime.load(notebook, (cell) => {
if (cell.name === "d3" || cell.name === "groupBy" || cell.name === "grid" || cell.name === "images" || cell.name === "svg" || cell.name === "vis" || cell.name === "botoes") {
return {
fulfilled: (value) => {
document.body.appendChild(value); //ou document.getElementById("div-para-visualizacao-predefinida").appendChild(value);
}
};
}
});
</script>

`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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