Error: Cannot fetch the example data because of security restrictions in JavaScript. Run the example from a server instead of as a local file to resolve this problem. Alternatively, you can copy/paste the data of DOT graphs manually in the textarea below.
</p>
<script>
if (location.href.substr(0, 5) == 'file:') {
$('#warning').show();
}
</script>
<p>
<p>
Play around with the DOT language in the textarea below, or select one of the following examples:
Play around with the DOT language in the textarea below, or select one of the following examples:
The examples marked with a star (*) come straight from the <ahref="http://www.graphviz.org/Gallery.php">gallery of GraphViz</a>.
The examples marked with a star (*) come straight from the <ahref="http://www.graphviz.org/Gallery.php">GraphViz gallery</a>.
</p>
</p>
<div>
<div>
<br>
<br>
@ -160,17 +151,19 @@ digraph {
$('a.example').click(function (event) {
$('a.example').click(function (event) {
var url = $(event.target).data('url');
var url = $(event.target).data('url');
$.get(url).done(function(dotData) {
$('#data').val(dotData);
draw();
});
$.get(url)
.done(function(dotData) {
$('#data').val(dotData);
draw();
})
.fail(function () {
$('#error').html('Error: Cannot fetch the example data because of security restrictions in JavaScript. Run the example from a server instead of as a local file to resolve this problem. Alternatively, you can copy/paste the data of DOT graphs manually in the textarea below.');