true @william, I was checking and data is not returned in the event body. We’ll plan to include that in future releases. For now as a workaround what you can do is to obtain the data from the internal query:
const chart = cf.provider('the-provider').source('the-source')
chart.groupby(..)
.metrics(...)
.element(...)
.graph(...)
.on('execute:stop', () => {
// Here you will have the latest updated data
const data = chart.get('aql')._data
})
.execute()
I need to mention that if the visualization is a Raw Data Table you will have to use the rdt:data-update event.