(Update) Creating stacked bars with diverging color and offsets with D3.js

Note: This article is and update regarding an earlier article that I wrote regarding d3.js. You can view the earlier article here.

I found that the chart was helpful in helping me make decisions regarding my particular stock portfolio. So, I decided that it would be a good idea to automate the process of generating the chart every morning.

Jupyter Notebook

Attached is a Jupyter Notebook it includes the step by step process of how I broke down the problem of updating the new stock value sheet. This requires keeping an eye on the current stock portfolio valuation (what are the stocks/values/shares that you are holding now). To automate this process, I simply create a cron job that runs the script at 7AM Eastern Time.

You can also see the repository here.

Final thoughts

Let me know what you think! Would this type of layout be useful to you? Feel free to contact me through twitter through @paulgarias and continue the conversation here!