-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArES_components.txt
More file actions
230 lines (203 loc) · 4.98 KB
/
ArES_components.txt
File metadata and controls
230 lines (203 loc) · 4.98 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Local HTML Report</title>
<link rel="stylesheet" href="css/bootstrap.css" type="text/css">
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css" type="text/css">
<link rel="stylesheet" href="css/nv.d3.css" type="text/css">
<link rel="stylesheet" href="css/bootstrap-select.min.css" type="text/css">
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/d3.v3.js"></script>
<script src="js/nv.d3.js"></script>
<script src="js/d3.layout.cloud.js"></script>
</head>
<body><div class="container">
<H1 id="4">ArES Components</H1>
<H2 id="0">Html Components</H2>
<table class="table">
<thead><tr>
<th>Class Name</th>
<th>Description</th>
</tr></thead>
<tr>
<td>A</td>
<td>
Wrapper for a Anchor HTML tag
</td>
</tr>
<tr>
<td>Button</td>
<td>
</td>
</tr>
<tr>
<td>Comment</td>
<td>
</td>
</tr>
<tr>
<td>Container</td>
<td> Wrapper for a simple DIV container
</td>
</tr>
<tr>
<td>Div</td>
<td> Wrapper for a simple DIV tag
</td>
</tr>
<tr>
<td>DropDown</td>
<td> Wrapper for a Dropdowm HTML object
</td>
</tr>
<tr>
<td>Graph</td>
<td> Wrapper to create a graph container </td>
</tr>
<tr>
<td>HtmlItem</td>
<td>
Main Abstract class for the Html objects
</td>
</tr>
<tr>
<td>Input</td>
<td>
</td>
</tr>
<tr>
<td>List</td>
<td>
</td>
</tr>
<tr>
<td>NestedTable</td>
<td>
</td>
</tr>
<tr>
<td>Paragraph</td>
<td>
</td>
</tr>
<tr>
<td>Select</td>
<td>
Basic wrapper to the Select HTML Tag
https://silviomoreto.github.io/bootstrap-select/examples/
For example to get a change on the Select Box Item in the Javascript call back method
- alert($(this).val()) ;
TODO: Extend the python object to handle multi select and all the cool features
</td>
</tr>
<tr>
<td>Split</td>
<td> Wrapper for a bootstrap Grid
</td>
</tr>
<tr>
<td>Table</td>
<td> Wrapper for the HTML table
the cssCls class will be added to the table.
If some style is needed at row or column level this has to be done in the CSS Style sheet.
</td>
</tr>
<tr>
<td>Text</td>
<td>
</td>
</tr>
<tr>
<td>Title</td>
<td> Wrapper for the HTML header tags </td>
</tr>
</table>
<H2 id="2">Graph Components</H2>
<table class="table">
<thead><tr>
<th>Class Name</th>
<th>Description</th>
</tr></thead>
<tr>
<td>Bar</td>
<td>
Data format expected in the graph:
[{key: "Cumulative Return", values: [{ "label": "One","value" : 29.765957771107}, {"label": "Four", "value" : 196.45946739256}]}]
</td>
</tr>
<tr>
<td>ComboLineBar</td>
<td>
Reference website: http://nvd3.org/examples/linePlusBar.html
</td>
</tr>
<tr>
<td>Donut</td>
<td>
Data format expected in the Graph:
[{ "label": "One","value" : 29.765957771107} , {"label": "Three", "value" : 32.807804682612}]
</td>
</tr>
<tr>
<td>IndentedTree</td>
<td>
Data expected:
[ (label, url, values), (label, url, dataKeys)]
Example
[ ('NVD3', 'http://novus.github.com/nvd3',
[("Charts", None,
[("Simple Line", "http://novus.github.com/nvd3/ghpages/line.html", {"type": "Historical"})])]),
("Chart Components", None, "Universal")]
reference site: http://nvd3.org/examples/indentedtree.html
</td>
</tr>
<tr>
<td>JsGraph</td>
<td>
the variable self.htmlId will directly refer to the parent Div tag.
All the variable created in the javascript will be with the suffic _self.htmlId in order to make the link
very easily between the javascript and the HTML.
Also it will make the html manual investigation easier
</td>
</tr>
<tr>
<td>Line</td>
<td>
Data format expected in the graph
[{color: "#ff7f0e", key: "Sine Wave", values: [{x: 1, y:10.0}, {x: 2, y:30.0}]}]
</td>
</tr>
<tr>
<td>Network</td>
<td>
Reference website: https://github.com/nylen/d3-process-map
</td>
</tr>
<tr>
<td>Pie</td>
<td> NVD3 Wrapper for a Pie Chart object.
This will expect as input data a list of tuple (label, value)
Data format expected in the Graph:
[{ "label": "One","value" : 29.765957771107} , {"label": "Three", "value" : 32.807804682612}]
</td>
</tr>
<tr>
<td>WordCloud</td>
<td>
This module will require the javascript module: d3.layout.cloud.js
TODO finalise the update method and make it generic with all the graph
the update method should appear once and only once in the javascript section of the page
</td>
</tr>
</table>
<script>
</script>
</div>
</body>
</html>