I have a table view with both filters and exposed filters, and attached to it there is another view that uses views_aggregator_plus to display a summary of months and different value counts.
I want to have the attachment visualized so I attached ChartJs script to the page view and had another function loop through the attachment html table rows to fetch the data while separating each column into its own array.
This works though I am not sure. It doesn't feel right. Wouldn't it be better if I pushed the values from the view directly to the script rather than have it done by the browser?
I am not sure about how to do it, but I found the values needed in hook_view_post_render under $view->style_plugin->rendered_fields..
How to proceed from there? Or maybe there is an entirely different and better way to achieve the same?