-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.html
45 lines (45 loc) · 1.47 KB
/
test.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
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<title>Document</title>
<script src='namespace.js'></script>
<script src='bower_components/d3/d3.min.js'></script>
<script src='bower_components/d3-tip/index.js'></script>
<link href='bower_components/polymer/polymer.html' rel='import'>
<link href='behaviors/colorpicker-behavior.html' rel='import'>
<link href='behaviors/chart-behavior.html' rel='import'>
<link href='bar-chart/bar-chart.html' rel='import'>
<link href='pie-chart/pie-chart.html' rel='import'>
<link href='waterfall-chart/waterfall-chart.html' rel='import'>
<link href='difference-chart/difference-chart.html' rel='import'>
<link href='bullet-chart/bullet-chart.html' rel='import'>
<link href='scatter-plot/scatter-plot.html' rel='import'>
<link href='multi-line/multi-line.html' rel='import'>
<link href='parallel-coordinate/parallel-coordinate.html' rel='import'>
</head>
<body>
<bar-chart edit-mode='true'></bar-chart>
<bar-chart edit-mode='true'></bar-chart>
<script>
var bar = document.querySelector('bar-chart');
bar.external = [{
key: 'state',
value: '0'
}, {
key: 'Under Five Year',
value: '1'
}, {
key: 'Over five Year',
value: '2'
}];
bar.source = [
['CA', 2704659, 4499890, 'A'],
['TX', 2027307, 3277946, 'B'],
['NY', 1208495, 2141490, 'C'],
['FL', 1140516, 1938695, 'D'],
['IL', 894368, 1558919, 'E']
];
</script>
</body>
</html>