It appears to be viable to do all plots using vega-lite, this is being investigated in the branch vega-lite branch. This would remove the hairy d3 soup that makes the plots right now.
Vega-lite seemed promising and although it was possible to express the plots rendering is a bit too slow and hard to customize. However the plots could come useful for exporting or the knowledge for making the second page analysis in a later stage in the project.
The plots were drawn using the DOM. This is a bit more manual work but in the end turned out to be easier and more convenient than d3 and easier to customise. :+1:
It appears to be viable to do all plots using vega-lite, this is being investigated in the branch vega-lite branch. This would remove the hairy d3 soup that makes the plots right now.