Chart load from grid

how i do load chart from grid in version 7.2?
i use function var state = grid1.data.serialize(); the result is empty.

https://snippet.dhtmlx.com/oyplboma

load() method performs an AJAX request to the specified URL and so it is asynchronous:

please, try to use the promise:
https://snippet.dhtmlx.com/5n3bcnsf