forked from rakannimer/react-google-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
50 lines (48 loc) · 899 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import React from "react";
import ReactDOM from "react-dom";
import Chart from "react-google-charts";
const data = [
[
{
type: "string",
id: "Date"
},
{
type: "number",
label: "Something"
},
{
type: "number",
label: "Something"
},
{
type: "number",
label: "Something"
},
{
type: "number",
label: "Something"
}
],
["Mon", 20, 28, 38, 45],
["Tue", 31, 38, 55, 66],
["Wed", 50, 55, 77, 80],
["Thu", 77, 77, 66, 50],
["Fri", 68, 66, 22, 15]
];
class App extends React.Component {
render() {
return (
<div className="App">
<Chart
chartType="CandlestickChart"
width="100%"
height="400px"
data={data}
/>
</div>
);
}
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);