Skip to content

Commit

Permalink
Fix #128
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkproduct committed Apr 12, 2022
1 parent 99d13fa commit 4329022
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pyvis/templates/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,17 @@ <h1>{{heading}}</h1>
{% if use_DOT %}

var DOTstring = "{{dot_lang|safe}}";
var parsedData = vis.network.convertDot(DOTstring);
data = {
nodes: parsedData.nodes,
edges: parsedData.edges
}

var options = parsedData.options;
options.nodes = {
shape: "dot"
}
data = vis.network.dotparser.DOTToGraph(DOTstring);

var options = data.options;
options = Object.assign(options, {
nodes: {
shape: "dot"
},
});
{% if options %}
options = Object.assign(options, {{options|safe}})
{% endif %}

{% else %}

Expand Down

0 comments on commit 4329022

Please sign in to comment.