tsaltena commented on issue #19493:
URL: https://github.com/apache/echarts/issues/19493#issuecomment-2476426231
We were facing a similar issue, and have gone the route of using the
'finished' event to turn the positions into static coordinates. So the basic
approach (we use this in a Vue-Echarts setting, so all the 'this' references
refer to the Vue component data):
```
on_finished: function() {
const model = this.chart.getModel()
const series = model.getSeriesByIndex(0);
const nodeData = series.getData();
// set the active layout to 'none' to avoid force updating:
this.active_layout = 'none'
// loop over node data to set the coordinates to the fixed node Data
this.graph_data.nodes.forEach((node, nodenum) => {
[node.x, node.y] = nodeData.getItemLayout(nodenum)
})
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]