wells-wood-research / de-stress

DE-STRESS is a model evaluation pipeline that aims to make protein design more reliable and accessible.
http://destressprotein.design
18 stars 1 forks source link

Fix plotting issues #8

Closed ChrisWellsWood closed 3 years ago

ChrisWellsWood commented 3 years ago

We currently have issues with the Vega Lite plots not rendering correctly. I think that there are a couple of routes to fixing this:

  1. Change the VL javascript code to be a custom element that manages it's own state and updates automatically based on changes in Elm.
  2. Use another library for plotting, preferably one that is Elm native.

I think that option 2 is probably more future proof and will enable tighter integration between the plots and the application, more control over the formatting of the plots and clearer code, mainly due to not having to use Vega's DSL to create plots. The disadvantages are that we're duplicating work we've already done, but we have a fair amount of overhead fixing these plots after every update.