-
Notifications
You must be signed in to change notification settings - Fork 234
Home
Huston Hedinger edited this page Jun 2, 2014
·
19 revisions
Alchemy.js is a graph drawing application, built with d3.
Alchemy.js was built so that developers could easily get up and running with Graph visualization applications, and minimal over head. Additionally, Alchemy.js is built with d3 so that the core application can easily be extended with any of the other features included in d3. You can see an example of how to extend Alchemy here.
-
Include Alchemy in your app:
- Download most recent Alchemy release.
<link rel="stylesheet" href="path/to/alchemy.css"> ... <script type="text/javascript" src="path/to/vendor.js"> <script type="text/javascript" src="path/to/alchemy.js">
-OR-
$ bower install Alchemy --save
<link rel="stylesheet" href="bower_components/alchemy/alchemy.css"> ... <script type="text/javascript" src="bower_components/alchemy/Alchemy.js">
-
Alchemy.js consumes GraphJSON, read more about the formate here. Define a data source in your conf file or inline after the Alchemy files e.g:
<script> alchemy.conf = { dataSource: "yourGraphJSON.json" } </script>
-
Add an Alchemy div to the page:
<div class="alchemy"></div>
-
start alchemy from your app:
alchemy.begin()
-
Be amazed by your sexy graph visualization.