-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (59 loc) · 2.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Asheville housing affordability</title>
</head>
<body>
<div class="graph-container">
<h3 class="graph-title">Home Price to Earnings Ratio for Asheville North Carolina</h3>
<div id="pe-graph">
<svg class="pe-graph__svg">
<g><rect class="pe-graph__drop-line" stroke-width="1px" width=".5px"></rect></g>
<circle class="pe-graph__tooltip-circle" r="4" stroke="#af9358" fill="white" stroke-width="2"></circle>
<g style="stroke: rgb(102, 102, 102);">
<line class="pe-graph__avg-line" stroke-dasharray="20 10" x1="0"></line>
<text class="pe-graph__avg-line-label" fill="currentColor"></text>
</g>
<g class="pe-graph__y-axis" fill="none" font-size="10" font-family="sans-serif" text-anchor="end">
<text class="pe-graph__y-axis-label" fill="currentColor" style="transform: rotate(-90deg); font-size: 16px;">P/E Ratio</text>
</g>
<g class="pe-graph__x-axis" fill="none" font-size="10" font-family="sans-serif" text-anchor="middle">
<path class="domain" stroke="currentColor"></path>
<text class="pe-graph__x-axis-label" fill="currentColor" style="font-size: 16px;">Year</text>
</g>
<path class="pe-graph__pe-ratio-line" fill="none" stroke="steelblue"></path>
<foreignObject class="pe-graph__tooltip">
<div class="tooltip data-display">
<dl>
<dt>P / E Ratio:</dt>
<dd class="data-display__pe-ratio"></dd>
<dt>Date Range:</dt>
<dd class="data-display__date"></dd>
<dt>Median Wage:</dt>
<dd class="data-display__wage"></dd>
<dt>Home Price:</dt>
<dd class="data-display__home-price"></dd>
</dl>
</div>
</foreignObject>
</svg>
</div>
<div class="data-display data-display--box">
<dl class="data-display--box-table">
<dt>P / E Ratio:</dt>
<dd class="data-display__pe-ratio"></dd>
<dt>Date Range:</dt>
<dd class="data-display__date"></dd>
<dt>Median Wage:</dt>
<dd class="data-display__wage"></dd>
<dt>Home Price:</dt>
<dd class="data-display__home-price"></dd>
</dl>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>