-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
82 lines (72 loc) · 2.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Bitemporal Document Insert/Update Demo</title>
<style>
body {
background-color: #f5f5f5;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12px;
}
.svg-chart .background {
shape-rendering: crispEdges;
stroke: #ccc;
fill: #fdfdfd;
stroke-width: 1px;
}
.svg-chart .g { fill: #4682B4; }
.tooltip-txt {
margin: 0;
font-family: Helvetica;
font-size: 25px;
line-height: 18px;
}
.axis-label {
font-family: Helvetica;
font-size: 15px;
}
.svg-chart .xaxis .tick text {
transform: rotate(-45deg);
text-anchor: end !important;
}
</style>
</head>
<body>
<h1>MarkLogic Bitemporal Visualization Demo</h1>
<div id="tooltip" class="hidden">
<p><span id="value"></span></p>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="public/moment.js"></script>
<script type="text/javascript" src="public/d3.js"></script>
<script type="text/javascript" src="public/bitemp_graph.js"></script>
<script type="text/javascript" src="public/bitemp_graph_helper.js"></script>
<div id="bar-chart-large"></div>
<script type="text/javascript">
$.get( "/data", function( data ) {
getBarChart({
data: data,
width: 800,
height: 600,
xAxisLabel: 'System',
yAxisLabel: 'Valid',
containerId: 'bar-chart-large'
})
});
$("input[name='insert']").click(function(){
var col = $("input[name='tempcol']").val();
var uri = $("input[name='uri']").val();
var vs = $("input[name='validstart']").val();
var ve = $("input[name='validend']").val();
var sys = $("input[name='systemtart']").val();
var d = $("input[name='content']").val();
$.get(
"/update?collection"+col+"&uri="+uri+
"&validstart="+vs+"&validend="+ve+
"&system="+sys+"&content="+d);
});
</script>
</body>
</html>