Best way to get data with active filter from datatable to chart

Hi,
What is the best way to get data with active filter from datatable to chart?

For example i want to get filtred data from databale to chart in this example.

https://snippet.webix.com/x4i50nlm

Hi,

The best option is to use data syncing. Please check the quick demo:

https://snippet.webix.com/kmjjc4ig

Thanks! But, there is small problem here. The chart has group by option, and it broken after sync.