You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the library to display a hierarchical workflow with the status of each task being updated in real time. After the initial display of the chart, a SignalR connection is established. When a task's status changes, a message is received and the underlying chart data is updated...
function refreshNode(id) {
let node = chart.getChartState().allNodes.find(x => x.id == id);
if (node) {
chart.update(node);
}
}
Console statements in my nodeContent function show that even though I'm passing a node to chart.update ALL nodes are being re-rendered. Is there a way to force an update on a single node to avoid unnecessary processing?
The text was updated successfully, but these errors were encountered:
I'm using the library to display a hierarchical workflow with the status of each task being updated in real time. After the initial display of the chart, a SignalR connection is established. When a task's status changes, a message is received and the underlying chart data is updated...
let task = chart.data().find(x => x.id.toLowerCase() === status.taskId.toLowerCase());
if (task) {
task.status = status.taskStatus;
task.startTime = status.startTime;
task.finishTime = status.finishTime;
}
... and I then refresh the node like so...
function refreshNode(id) {
let node = chart.getChartState().allNodes.find(x => x.id == id);
if (node) {
chart.update(node);
}
}
Console statements in my nodeContent function show that even though I'm passing a node to chart.update ALL nodes are being re-rendered. Is there a way to force an update on a single node to avoid unnecessary processing?
The text was updated successfully, but these errors were encountered: