Hi. I checked the notebook on github. I can deliver you the same implementation in javascript. However, if you do not have a special reason to go with 100% javascript, we can do this with Flask backend. We would use javascript to detect when user selects assets on the frontend, and go get the related data and implement the calculations in python on backend side. Javascipt then would recieve this data and draws the graph using d3.js. Please let me know the details via chat.