Comments (2)
Ah, yep, fixed my comment on the previous issue. I just said to open a new issue, which you did!
Very close! A few issues:
- The actual constructor is
Vizceral.default
. - It's a constructor, so you have to call
new Vizceral.default
. maxVolume
is required for graphs- You need to call
viz.animate()
to load and start the animation
One issue as far as graph layout goes on my end: I still expect there to be one entry node, and that entry node to be named 'INTERNET'. That is hard coded in a few places, and at some point, I think this expectation should be removed. (FWIW, this requirement is documented in DATAFORMATS.md)
All that being said, here's a working example (at least in Firefox 48):
<html>
<head>
<script src="./lib/vizceral_ecs6.js"></script>
<script>
function run( ) {
var viz = new Vizceral.default(document.getElementById('test'));
viz.updateData({name: 'us-west-2', renderer: 'global', nodes: [{name: 'INTERNET'},{name: 'b'}], connections: [{source: 'INTERNET', target: 'b'}], maxVolume: 100});
viz.setView();
viz.animate();
}
</script>
</head>
<body onload='javascript:run( )'>
<canvas id='test'></canvas>
</body>
</html>
from vizceral.
@jrsquared Eureka it works! Thank you!
from vizceral.
Related Issues (20)
- memory leak?
- Allow embedding images/HTML in notices HOT 2
- Next in timeline? HOT 1
- Problem of calling updateData with same trafficData HOT 1
- Curved connections between nodes HOT 3
- problem HOT 2
- 'TypeError: Cannot read property 'showLabels' of undefined' when set showLabels to false HOT 2
- vizceral.js:formatted:37091 Uncaught TypeError: r.setValue is not a function : Upgrading to 4.7.0 version. HOT 3
- Problem with Dockerfile with a create-react-app and the Vizceral
- Delete merged branches
- Install fails with [email protected] HOT 1
- Class Vizceral can't accept external layout HOT 1
- Notices don't show
- Vizceral doesn't show live metrics
- Which tool is Netflix using now? HOT 4
- Next step after the installation of Vizceral HOT 2
- Request Dynamic font size for label
- how to change connection notice icon?
- How traffic data is collected HOT 1
- Is there any way to place each donut graph on specific place
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vizceral.