DevExtreme React - Array Only
To bind the Chart to an array, pass this array to the dataSource option. The array should contain objects.
After that, you need to bind one or several Chart series to data. Depending on the series type you chose, use one of the techniques described in the Bind Series to Data topic.
If objects in an array need to be processed (sorted, filtered, etc.), you can create a Query. For example, in the following code, a Query sorts objects in the fruits
array by the count
field in descending order.
See Also
If you have technical questions, please create a support ticket in the DevExpress Support Center.