Thanks. I dug into this a bit more and found a few other options as well for anyone curious.
The virtualRowData did not exactly have the information for what I was trying to plot, since the data I needed was based on grouping and aggregation.
First version:
nodes = []
gridApi.forEachNodeAfterFilterAndSort((node) => {
if (node.rowIndex !== null) {
nodes.push(node)
}
});
Second version (same data as first version:)
var model = gridApi.getModel()
var rows = model.rowsToDisplay
It may not work in all cases but just wanted to share what worked for me. Thanks!
I’ll mark as solved for now.