I've just done this, hosted on firebase
Of course it's not apps script, but uses D3.js, which a few of you use for visualizations in htmlservice and Add-ons (most of mine did)
D3 has quite a steep and frustrating learning curve, so I'm posting this in case any of you find the code useful, are working on something similar, or feel like contributing by improving
code is here
story is here
https://ramblings.mcpher.com/d3-js/cv-viz-virus-infection-simulation-with-d3-js/