Skip to content

Commit

Permalink
fix(site): fix site demo of fruchterman complex data (#5241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca authored Dec 8, 2023
1 parent 0961ba7 commit b689d9c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const height = container.scrollHeight || 500;
fetch('https://gw.alipayobjects.com/os/basement_prod/7bacd7d1-4119-4ac1-8be3-4c4b9bcbc25f.json')
.then((res) => res.json())
.then((data) => {
const graph = new CustomGraph({
window.graph = new CustomGraph({
container: 'container',
width,
height,
Expand Down Expand Up @@ -45,5 +45,3 @@ fetch('https://gw.alipayobjects.com/os/basement_prod/7bacd7d1-4119-4ac1-8be3-4c4
data,
});
});

window.graph = graph;

0 comments on commit b689d9c

Please sign in to comment.