diff --git a/src/components/partials/Visualization.vue b/src/components/partials/Visualization.vue index a4ffc3cca2568db114f3d5e988249c97ea09d5bc..f996d18dff1f7fa96160f122e55054d4ddf4284b 100644 --- a/src/components/partials/Visualization.vue +++ b/src/components/partials/Visualization.vue @@ -58,7 +58,7 @@ export default { props: ['src'], data() { return { - hide: true, + hide: false, svg: null, tooltip: null, simulation: null, @@ -89,24 +89,30 @@ export default { }, watch: { src(val) { + if (this.simulation) this.simulation.stop() this.createChart() }, width(val) { this.clear() + if (this.simulation) this.simulation.stop() this.createChart() }, height(val) { this.clear() + if (this.simulation) this.simulation.stop() this.createChart() }, selectedColor(val) { this.clear() + if (this.simulation) this.simulation.stop() this.createChart() }, selected(val) { + if (this.simulation) this.simulation.stop() this.setSimulation() }, separator(val) { + if (this.simulation) this.simulation.stop() this.setSimulation() } },