Closed alucarddelta closed 4 years ago
Have the same issue. I am injecting custom SVG and HTML to create nodes. So adding {layout: {hierarchical: ...}}
breakes even custom nodes, nodes with default styles are displayed instead
you can walk around this issue by setting the hierarchical
options manually like this:
mounted() {
this.$refs.network.setOptions({
layout: {
hierarchical: {
...
}
},
});
}
That worked like a treat!
I ended up moving all my options into that def and it works perfectly!
Thanks @setaman
The console is reporting
When using the following code.
<network class="network" ref="network" :nodes="this.vue2vis.nodes" :edges="this.vue2vis.edges" :options="options"
options: { layout: { hierarchical: { direction: "LR" } }, nodes: { shape: "square" }, }
When ever "hierarchical" is used even while empty, this message appears.