-
Notifications
You must be signed in to change notification settings - Fork 7
/
raders.html
55 lines (44 loc) · 1.83 KB
/
raders.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
<!DOCTYPE html>
<html lang="en">
<head>
<!--# include file="/templates/header.html" -->
</head>
<body data-spy="scroll" data-target=".bs-sidebar" data-offset="0">
<!--# include file="/templates/navbar.html" -->
<div class="container manual">
<div class="row">
<div class="col-md-8" id="top" role="complementary">
<h4>Lisp, Scheme, ML</h4>
<div id="chart-lisp-scheme-ml"></div>
<h4>Egison</h4>
<div id="chart-egison"></div>
</div>
</div><!--/row-->
</div><!-- /.container -->
<!--# include file="/templates/footer.html" -->
<script src="/vendors/d3.min.js"></script>
<script src="/vendors/radar-chart-d3/src/radar-chart.js"></script>
<script>
var data1 = [[{axis: "Function modularity", value: 5},
{axis: "Typing system", value: 4},
{axis: "Pattern matching", value: 1}
], [{axis: "Function modularity", value: 5},
{axis: "Typing system", value: 1},
{axis: "Pattern matching", value: 0}
], [{axis: "Function modularity", value: 3},
{axis: "Typing system", value: 1},
{axis: "Pattern matching", value: 0}
]];
RadarChart.draw("#chart-lisp-scheme-ml", data1, {maxValue: 5, color:d3.scale.ordinal().range(["#2ca02c", "#d62728", "#9467bd"])});
var data4 = [[{axis: "Function modularity", value: 5},
{axis: "Typing system", value: 4},
{axis: "Pattern matching", value: 4}
], [
{axis: "Function modularity", value: 5},
{axis: "Typing system", value: 1},
{axis: "Pattern matching", value: 4}
]];
RadarChart.draw("#chart-egison", data4, {maxValue: 5, color:d3.scale.ordinal().range(["#ff7f0e", "#1f77b4"])});
</script>
</body>
</html>