forked from recharts/recharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-umd.html
98 lines (98 loc) · 2.12 KB
/
test-umd.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<html>
<head> </head>
<body>
<div id="root"></div>
<script src="https://unpkg.com/react/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/prop-types/prop-types.min.js"></script>
<script src="./umd/Recharts.js"></script>
<script>
const data = [
{
name: 'Page A',
uv: 1000,
pv: 2400,
amt: 2400,
uvError: [75, 20],
},
{
name: 'Page B',
uv: 300,
pv: 4567,
amt: 2400,
uvError: [90, 40],
},
{
name: 'Page C',
uv: 280,
pv: 1398,
amt: 2400,
uvError: 40,
},
{
name: 'Page D',
uv: 200,
pv: 9800,
amt: 2400,
uvError: 20,
},
{
name: 'Page E',
uv: 278,
pv: null,
amt: 2400,
uvError: 28,
},
{
name: 'Page F',
uv: 189,
pv: 4800,
amt: 2400,
uvError: [90, 20],
},
{
name: 'Page G',
uv: 189,
pv: 4800,
amt: 2400,
uvError: [28, 40],
},
{
name: 'Page H',
uv: 189,
pv: 4800,
amt: 2400,
uvError: 28,
},
{
name: 'Page I',
uv: 189,
pv: 4800,
amt: 2400,
uvError: 28,
},
{
name: 'Page J',
uv: 189,
pv: 4800,
amt: 2400,
uvError: [15, 60],
},
];
const renderLineChart = /*#__PURE__*/ React.createElement(
Recharts.LineChart,
{
width: 400,
height: 400,
data: data,
},
/*#__PURE__*/ React.createElement(Recharts.Line, {
type: 'monotone',
dataKey: 'uv',
stroke: '#8884d8',
}),
);
ReactDOM.render(renderLineChart, document.getElementById('root'));
</script>
</body>
</html>