-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
24 lines (18 loc) · 788 Bytes
/
Copy pathindex.js
File metadata and controls
24 lines (18 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var React = require('react')
var ReactDOM = require('react-dom')
var Scatter = require('./scatter.jsx')
document.body.style.margin = 0
document.body.style.background = '#333'
document.body.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
var container = document.createElement('div')
container.style.display = 'flex'
container.style.justifyContent = 'center'
container.style.alignItems = 'center'
container.style.height = '100vh'
document.body.appendChild(container)
var element = React.createElement(Scatter, {
width: window.innerWidth * 0.8,
height: window.innerHeight * 0.8,
dataset: 'https://azure-respect.glitch.me/iris.json'
})
ReactDOM.render(element, container)