-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
295 lines (258 loc) · 7.97 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
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<title>LoCharts: An Obviously Better Charting Framework</title>
<link
rel="stylesheet"
href="ir-stock-chart.css"
type="text/css"
media="screen"
charset="utf-8"
/>
<style type="text/css" media="screen">
body {
font-family: Verdana, Helvetica, Arial, Sans-serif;
width: 800px;
margin: 10px auto;
}
h1 {
text-align: center;
}
h2 {
margin-top: 4em;
text-align: center;
}
hgroup h2 {
margin-top: 0;
}
p {
text-align: center;
}
table {
margin: 1em auto;
width: 90%;
}
th,
td {
text-align: center;
}
#baseball-standings {
width: 400px;
border: 1px solid #ccc;
}
#baseball-standings td {
text-align: left;
}
figure {
margin: 0;
}
</style>
<script
type="text/javascript"
charset="utf-8"
src="globals/jquery-1.6.js"
></script>
<script
type="text/javascript"
charset="utf-8"
src="globals/jquery-ui-1.8.custom.js"
></script>
<script
src="globals/raphael2.js"
type="text/javascript"
charset="utf-8"
></script>
<link rel="stylesheet" type="text/css" href="abtest.css" />
<script
src="globals/require.js"
type="text/javascript"
charset="utf-8"
data-main="js/chart-examples/examples"
></script>
<!-- <script type="text/javascript" charset="utf-8" src="chart-with-examples.js"></script> -->
</head>
<body>
<div id="page">
<div id="header"></div>
<div id="pusher">
<div id="content">
<hgroup>
<h1>LoCharts</h1>
<h2>An Obviously Better Charting Framework</h2>
</hgroup>
<p>
This is a work in progress. See the
<a href="readme.html">documentation</a> and the
<a href="SpecRunner.html?module=ally-charts-spec">unit tests</a>.
</p>
<p>
(Update: this is one of my many incomplete passion projects hence
everything looks terrible. When I built this page in 2011 I wasn't
thinking it was going to go on Github. 😅)
</p>
<p>
See also: <a href="stock-chart.html">stock chart</a> and
<a href="bragging-rates.html">Braggin Rates chart</a>.
</p>
<div id="banner"></div>
<div id="limit">
<div id="article">
<h2>Bar Chart</h2>
<p>
As seen on
<a
href="http://www.ally.com/bank/high-yield-cd/#tabs=calculator"
title="High Yield CDs: Certificate of Deposit Rates - CD High Interest Rates | Ally Financial"
>CD calculators</a
>.
</p>
<div id="bar" style="width: 800px; height: 400px"></div>
<h2>Line Graph</h2>
<div id="line" style="width: 800px; height: 400px"></div>
<h2>Area Graph</h2>
<div id="area" style="width: 800px; height: 400px"></div>
<h2>Differential Area</h2>
<p>
Building up to satisfy the requirements of the
<a
href="http://www-sit1.ally.com/bank/raise-your-rate-cd/#tabs=calculator"
title="Raise Your Rate CD: Raise Your Rate CD - Compare Bank Accounts | Ally Financial"
>4-year Raise-Your-Rate calculator</a
>.
</p>
<table id="raise-your-rate-data">
<thead>
<tr>
<th> </th>
<th>Rate</th>
<th>05/11/2011</th>
<th>01/01/2012</th>
<th>04/15/2013</th>
<th>05/11/2015</th>
</tr>
</thead>
<tbody>
<tr>
<th>Original rate</th>
<th>1.5</th>
<td>50000</td>
<td>51000</td>
<td>52000</td>
<td>53000</td>
</tr>
<tr>
<th>First increase</th>
<th>2.5</th>
<td>50000</td>
<td>51000</td>
<td>52500</td>
<td>54000</td>
</tr>
<tr>
<th>Second increase</th>
<th>3.5</th>
<td>50000</td>
<td>51000</td>
<td>52500</td>
<td>55000</td>
</tr>
</tbody>
</table>
<div
id="differential-area"
style="width: 800px; height: 400px"
></div>
<h2>Pie Chart</h2>
<table id="wealth-by-type">
<thead>
<tr>
<th>Savings</th>
<th>Checking</th>
<th>CDs</th>
<th>Mutual Funds</th>
</tr>
</thead>
<tbody>
<tr>
<td>40000</td>
<td>5000</td>
<td>25000</td>
<td>30000</td>
</tr>
</tbody>
</table>
<div id="pie-chart" style="width: 800px; height: 400px"></div>
<h2>Using Data Attributes</h2>
<table id="baseball-standings">
<tr>
<td>Baltimore</td>
<td>6</td>
</tr>
<tr>
<td>Toronto</td>
<td>5</td>
</tr>
<tr>
<td>NY Yankees</td>
<td>5</td>
</tr>
<tr>
<td>Tampa Bay</td>
<td>5</td>
</tr>
<tr>
<td>Boston</td>
<td>4</td>
</tr>
</table>
<figure
style="width: 800px; height: 400px"
class="bar-chart"
data-margin-left="50"
data-margin-right="50"
data-labels="#baseball-standings td:nth-of-type(1)"
data-values="#baseball-standings td:nth-of-type(2)"
></figure>
<!-- <div id="local"></div> -->
<!-- <div id="serial"></div> -->
<h2>A/B Test Rates</h2>
<p>For new HYCD A/B test</p>
<div id="abtest-rates" style="width: 800px; height: 400px"></div>
<p>
(This probably looked okay on IE9 or whatever was current at the
time. 🤪)
</p>
</div>
<!-- #article -->
<!-- <div id="aside"></div> -->
</div>
<!-- /#limit -->
<div id="nav">
<!-- <div id="widgets"></div> -->
<!-- <div id="breadcrumbs"></div> -->
<!-- <div id="global"></div> -->
<!-- <div id="universal"></div> -->
<!-- <div id="tools"></div> -->
</div>
<!-- #nav -->
</div>
<!-- /#content -->
</div>
<!-- /#pusher -->
<div id="footer">
<div id="footernav"></div>
<div id="affiliations"></div>
<div id="copyright"></div>
<div id="footnotes"></div>
<div id="disclaimers"></div>
</div>
<!-- /#footer -->
<!-- <div id="visual1"></div> -->
<!-- <div id="visual2"></div> -->
<!-- <div id="visual3"></div> -->
<!-- <div id="visual4"></div> -->
</div>
<!-- #/page -->
</body>
</html>