Published
Edited
Sep 7, 2018
3 forks
11 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
main = {
ReactDOM.render(jsx({ motion_damping, motion_stiffness, Line, ResponsiveLine, line_data, line_specs})`${line_specs}`, line_container)
ReactDOM.render(jsx({ motion_damping, motion_stiffness, Chord, ResponsiveChord, chord_data })`${chord_specs}`, chord_container)
ReactDOM.render(jsx({ motion_damping, motion_stiffness, Calendar, ResponsiveCalendar, calendar_data, calendar_specs})`${calendar_specs}`, calendar_container)
ReactDOM.render(jsx({ heatmap_colors, motion_damping, motion_stiffness, ResponsiveHeatMap, heatmap_data, heatmap_specs})`${heatmap_specs}`, heatmap_container)
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
r = require.alias({
"react": "react@16.4.2/umd/react.development.js",
"react-dom": "https://bundle.run/react-dom@16.4.2", //"react-dom@16/umd/react-dom.production.min.js",
"chord": "https://bundle.run/@nivo/chord@0.42.1",
"calendar": "https://bundle.run/@nivo/calendar@0.42.1",
"line": "https://bundle.run/@nivo/line@0.42.1",
"heatmap": "https://bundle.run/@nivo/heatmap@0.42.1",
})
Insert cell
//ReactDOM = require('https://wzrd.in/standalone/react-dom@latest') // from https://beta.observablehq.com/@subuta/react-with-jsx-example-via-babel-standalone
//ReactDOM = require('react-dom@16.4.2/index.js').catch(() => window.checkDCE) // didn't work
ReactDOM = r('react-dom')
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

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