Synthetixio / simulation

Agent-based model of the proposed stablecoin.
24 stars 18 forks source link

Visualization refactor #45

Closed 0xdomrom closed 6 years ago

0xdomrom commented 6 years ago

Copied most of Mesa's visualization library into the local branch, so modifications could be made.

Changed the visualization to run in a separate thread to the actual model, to allow for cleaner resetting and stepping.

Changed all graphs to use chart.js v2.7, instead of mesa's v0.0.2, removing the need for chartist.js and chartist.css

Changed the template to have the top bar be fixed when scrolling, as well as moving the settings to a 'popup' window.

An issue that still remains is that when hovering over graphs, the tooltips are cut off at the edge of the graph (as they are in a canvas now, instead of html elements)