`fig.update_layout(yaxis2={"overlaying": "y", "side": "right"})` is the correct syntax for dual y-axes in graph objects. - The cumulative line is `df["revenue"].cumsum()`.