-
Notifications
You must be signed in to change notification settings - Fork 0
/
tabela-geral.html
42 lines (35 loc) · 838 Bytes
/
tabela-geral.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
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style>
svg {
margin-right: 2px;
margin-left: 2px;
}
</style>
</head>
<body>
<script>
var width = 50,
height = 50;
var drag = d3.behavior.drag()
.origin(function(d) { return d; });
var svg = d3.select("body").append("div").selectAll("svg")
.data(d3.range(164).map(function() { return {x: width / 2, y: height / 2}; }))
.enter().append("svg")
.attr("width", width)
.attr("height", height);
svg.append('svg:image')
.attr({
'xlink:href': 'https://upload.wikimedia.org/wikipedia/en/thumb/4/41/Victoria_bus_logo.svg/1023px-Victoria_bus_logo.svg.png', // can also add svg file here
x: 5,
y: 5,
width: 40,
height: 40})
.attr("align", "center");
</script>
</body>
</html>