-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (70 loc) · 1.87 KB
/
index.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
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
body {
font-size: large;
font-family: Arial, Helvetica, sans-serif;
}
.node rect {
fill-opacity: .9;
shape-rendering: crispEdges;
}
.node text {
font-size: medium;
pointer-events: none;
/* text-shadow: 0 1px 0 #fff; */
}
.link {
fill: none;
stroke: #000;
stroke-opacity: .1;
}
.link:hover {
/* stroke: rgb(255, 0, 0); */
stroke-opacity: .3;
}
.chart {
/* background-color: aqua; */
/* border: 1px;
border: dashed red; */
padding-left: 5%;
padding-right: 5%;
text-align: center;
}
/* title {
color: blue;
font-size: 100px;
} */
.chart_title {
font-size: 30px;
color: blue;
}
.top_title {
font-size: 30px;
}
</style>
<body>
<div class="chart">
<p class="top_title">Data behind the Australian Climate Tech Community</p>
</div>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/d3-sankey.min.js"> </script>
<script src="chart.js"></script>
</script>
<script>
show_sankey("Founding Team", "data/Founders.json");
show_sankey("Primary Offering", "data/Offering.json");
show_sankey("Funding Round", "data/Funding Round.json");
show_sankey("Funding Source", "data/Type2.json");
show_sankey("Funding Size", "data/Funding Split.json");
show_sankey("Where Founded", "data/Where Founded.json");
show_sankey("Business Model", "data/Business Model.json");
show_sankey("Product Stage", "data/Product Stage.json");
show_sankey("Annual Revenue", "data/Annual Revenue.json");
show_sankey("Percentage revenue overseas", "data/Percentage revenue overseas.json");
show_sankey("Primary impact goal", "data/Primary impact goal.json");
show_sankey("Business Challenges", "data/Challenges.json");
// show_sankey("Not a Business Challenge", "data/Challenges2.json");
</script>
</body>