This function takes a data frame and returns an interactive plot for the cumulative P&L of the portfolio data. The plot is zoomable and specific data can be shown once the cursor is placed on the graph.
A data frame that the function takes in.
A plot. Red bars indicate loss and green bars indicate profit.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.