-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (44 loc) · 1.3 KB
/
Copy pathindex.html
File metadata and controls
45 lines (44 loc) · 1.3 KB
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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8" />
<title>Data lineage view</title>
<script src="sqlflow.widget.3.5.19.js?t=1704526657668"></script>
<script>
document.addEventListener('DOMContentLoaded', async () => {
const sqlflow = await SQLFlow.init({
container: document.getElementById('sqlflow'),
width: '100%',
height: '100%',
apiPrefix: '',
component: {
sqlEditor: false,
graphLocate: true,
minimap: true,
},
});
const json = await fetch('json/lineageGraph.json').then(res => res.json());
sqlflow.visualizeJSON(json, { layout: true });
});
</script>
<style>
html, body {
width: 100%;
height: 100%;
}
div {
height: 100%;
width: 100%;
}
* {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div class="block">
<div id="sqlflow"></div>
</div>
</body>
</html>