React Sankey - Array Only
To bind the Sankey to an array, pass this array to the dataSource property. The array should contain objects with the source
, target
, and weight
fields (default names). You can use the sourceField, targetField, and weightField properties to specify other names:
You can create a Query if objects in the array should be processed (sorted, filtered, and so on). For example, in the following code, a Query filters the sankeyData
array to exclude objects whose weight
is less than 3:
See Also
If you have technical questions, please create a support ticket in the DevExpress Support Center.