|
|
@ -10,10 +10,10 @@ |
|
|
|
width: 600px; |
|
|
|
} |
|
|
|
html, body, select { |
|
|
|
font: 11pt verdana; |
|
|
|
font: 11pt arial; |
|
|
|
} |
|
|
|
#mygraph { |
|
|
|
width: 600px; |
|
|
|
width: 100%; |
|
|
|
height: 600px; |
|
|
|
border: 1px solid lightgray; |
|
|
|
} |
|
|
@ -29,7 +29,7 @@ |
|
|
|
'restrictions in JavaScript. Run the example from a server ' + |
|
|
|
'instead of as a local file to resolve this problem. ' + |
|
|
|
'Alternatively, you can load DOT graphs in ' + |
|
|
|
'the <a href="../20_dot_language_playground.html" ' + |
|
|
|
'the <a href="../15_dot_language_playground.html" ' + |
|
|
|
'style="color:red;">playground</a>.' + |
|
|
|
'</p>'); |
|
|
|
} |
|
|
@ -38,7 +38,11 @@ |
|
|
|
<p> |
|
|
|
The following examples are unmodified copies from the |
|
|
|
<a href="http://www.graphviz.org/Gallery.php" target="_blank">Graphviz Gallery</a>. |
|
|
|
Note that vis.js does not support all attributes of Graphviz, and |
|
|
|
</p> |
|
|
|
<p> |
|
|
|
Note that some style attributes of Graphviz are not supported by vis.js, |
|
|
|
and that vis.js offers options not supported by Graphviz (which could make |
|
|
|
some examples look much nicer). |
|
|
|
</p> |
|
|
|
|
|
|
|
<p> |
|
|
@ -53,11 +57,13 @@ |
|
|
|
<option value="data/transparency.gv.txt">transparency</option> |
|
|
|
<option value="data/twopi2.gv.txt">twopi2</option> |
|
|
|
<option value="data/unix.gv.txt">unix</option> |
|
|
|
<!-- TODO: get example world working (needs some extension of the DOT parser) |
|
|
|
<option value="data/world.gv.txt">world</option> |
|
|
|
--> |
|
|
|
</select> |
|
|
|
</p> |
|
|
|
<div id="mygraph"></div> |
|
|
|
|
|
|
|
<div id="mygraph"></div> |
|
|
|
<script type="text/javascript"> |
|
|
|
var container = document.getElementById('mygraph'); |
|
|
|
var url = document.getElementById('url'); |
|
|
|