-
Notifications
You must be signed in to change notification settings - Fork 0
/
05.html
36 lines (36 loc) · 1.4 KB
/
05.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>05 - SVG Bar</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<svg width="420" height="120" font-family="sans-serif" font-size="10" text-anchor="end">
<g transform="translate(0,0)">
<rect fill="steelblue" width="40" height="19"></rect>
<text fill="white" x="37" y="9.5" dy=".35em">4</text>
</g>
<g transform="translate(0,20)">
<rect fill="steelblue" width="80" height="19"></rect>
<text fill="white" x="77" y="9.5" dy=".35em">8</text>
</g>
<g transform="translate(0,40)">
<rect fill="steelblue" width="150" height="19"></rect>
<text fill="white" x="147" y="9.5" dy=".35em">15</text>
</g>
<g transform="translate(0,60)">
<rect fill="steelblue" width="160" height="19"></rect>
<text fill="white" x="157" y="9.5" dy=".35em">16</text>
</g>
<g transform="translate(0,80)">
<rect fill="steelblue" width="230" height="19"></rect>
<text fill="white" x="227" y="9.5" dy=".35em">23</text>
</g>
<g transform="translate(0,100)">
<rect fill="steelblue" width="420" height="19"></rect>
<text fill="white" x="417" y="9.5" dy=".35em">42</text>
</g>
</svg>
</body>
</html>