Published
Edited
Nov 20, 2019
Insert cell
Insert cell
chart = Object.assign(html`<iframe style="width:100%;height:400px;border:none;" scrolling="no" class="noscroll">`, {srcdoc: `
<!DOCTYPE html>
<body>
<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/@maliky/simple-line-chart-to-embed-in-resizable-react-components.js?v=3";

new Runtime().module(define, name => {
if (name === "chart") {
return new Inspector(document.body);
}
});

</script>
`})
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