Open hx425072624 opened 11 months ago
using dispatchAction, but the function can only highlight nodes or edges.
Nope, it can do both simultaneously - Demo Code. 📌 please close issue if problem solved.
but this can't fade out of other data to focus the highlighted,is this a bug?
I doubt dispatchAction can change focus. Focus works only with mouseover.
I doubt dispatchAction can change focus. Focus works only with mouseover.
But the document shows Focus works with highlight.I want to fade out of other data when i dispatchAction highlight,but it don't work
But the document shows Focus works with highlight.I want to fade out of other data when i dispatchAction highlight,but it don't work
I had the same problem, and here's my solution
The second time you highlight node or edge, you need to add the notBlur: true
property and recommend the focus setting self
.
chart?.dispatchAction({
type: 'highlight',
batch: [
{ dataType: 'node', dataIndex: nodeIndexes },
{ dataType: 'edge', dataIndex: selected.indexes, notBlur: true },
],
});
What problem does this feature solve?
I want to highlight the nodes and edges like the picture below by using dispatchAction,but the function can only highlight nodes or edges.Is there any way to achieve this target
What does the proposed API look like?
dispatchAction({ type:'highlight', batch:[ { dataIndex:[1,2,34,5,6], dataType:'node' } { dataIndex:[1,2,34,5], dataType:'edge' } ] })