World History Timeline

buenas, soy nueva usando esta libreria y tengo dudas me descargue d3 de observable World History Timeline que es una grafica de tiempo, debajo de la grafica esta el codigo de la grafica, entonces me gustaria como solo mostrar la grafica sin el codigo abajo e buscado y no encuentra la manera como repito soy nueva y creo que se me escapa algo que no estoy viendo gracias si me pueden ayudar.

hi, sorry I can’t write well in Spanish, are you talking about showing this project ?

You could embed just the chart in a html page without the other cell lines, here is an example

Presentation: https://embed-single-cell.glitch.me/
Source: https://glitch.com/edit/#!/embed-single-cell?path=index.html

the embed code

<div id="observablehq-12bbe174"></div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/@tezzutezzu/world-history-timeline.js?v=3";
const inspect = Inspector.into("#observablehq-12bbe174");
(new Runtime).module(define, name => name === "chart" ? inspect() : undefined);
</script>

You can read more about how to embed https://observablehq.com/@observablehq/downloading-and-embedding-notebooks

3 Likes

Thanks for responding to this question!

3 Likes