forked from beilinli/cellblender-browser-plot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
histogram.html
77 lines (69 loc) · 2.37 KB
/
histogram.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Histogram</title>
<script src="external/all-min.js"></script>
<link rel='stylesheet' href='external/all-min.css'></script>
<link rel="stylesheet", type="text/css", a href = "histogram.css" />
</head>
<body>
<!-- left panel -->
<div id = "settings-panel" class = "side-panel">
<!-- plot range and chart display options -->
<div id = "chart-settings">
<b>Bin count</b> <input type = "number" id = "bin-count"> <br />
<b>Chart background</b>
<input type = "color" id = "chart-color">
<br />
<b>Show legend</b>
<input type = "checkbox" id = "toggle-legend" checked><br />
</div>
</div>
<div id = "outer-expand" class = "expand">
<span>⇽</span>
</div>
<div id = "chart-container">
<div id = "chart"></div>
</div>
<!-- edit chart title -->
<div class = "edit-label" id = "edit-title">
Title <input type = "text" class = "label-text"><br />
<!-- options in plot-main.js -->
Font <select class = "label-font"></select>
<span></span>
<input type = "color" class = "label-color">
<span></span>
<input type = "number" class = "label-size"> <br />
<button class = 'apply-label'>Apply</button>
<button class = 'cancel'>Cancel</button>
</div>
<!-- edit x-axis label -->
<div class = "edit-label" id = "edit-x-label">
Title <input type = "text" class = "label-text"><br />
Font <select class = "label-font"></select>
<span></span>
<input type = "color" class = "label-color">
<span></span>
<input type = "number" class = "label-size"> <br />
Tick interval <input type = "number" class = "tick-interval"> <br />
<button class = 'apply-label'>Apply</button>
<button class = 'cancel'>Cancel</button>
</div>
<!-- edit y-axis label -->
<div class = "edit-label" id = "edit-y-label">
Title <input type = "text" class = "label-text"><br />
Font <select class = "label-font"></select>
<span></span>
<input type = "color" class = "label-color">
<span></span>
<input type = "number" class = "label-size"> <br />
Tick interval <input type = "number" class = "tick-interval"> <br />
<button class = 'apply-label'>Apply</button>
<button class = 'cancel'>Cancel</button>
</div>
<!-- main script -->
<script src = "common-display.js"></script>
<script src = "histogram.js"></script>
</body>
</html>