Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Promise.all([
- fetch('data.json').then(res => res.json()),
- fetch('styles.json').then(res => res.json())
- ]).then(([{elements}, style]) => {
- cytoscape({
- container: document.getElementById('cy'),
- elements,
- style
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement