-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhorizontal.html
More file actions
25 lines (25 loc) · 842 Bytes
/
horizontal.html
File metadata and controls
25 lines (25 loc) · 842 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Horizontal XML Tree</title>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script defer src="script.js"></script>
<style>
body { font-family: Arial, sans-serif; }
.node circle { fill: steelblue; stroke: black; stroke-width: 1.5px; }
.node text { font-size: 12px; }
.link { fill: none; stroke: #ccc; stroke-width: 1.5px; }
</style>
</head>
<body>
<h2>Horizontal XML Tree</h2>
<svg width="960" height="600"></svg>
<script>
document.addEventListener("DOMContentLoaded", () => {
loadXMLFiles(["data/file1.xml", "data/file2.xml", "data/file3.xml"], "horizontal");
});
</script>
</body>
</html>