Premium problem22. Positive and Negative Bars

Medium Locked

values contains both gains and losses. Draw a vertical bar chart at positions 0, 1, 2, ... where negative bars hang below the baseline and positive ones rise above it, then add a horizontal line at y = 0 so the baseline is explicit.

Return the Axes.

Premium problem

This one's part of Premium. Unlock the full Matplotlib track plus every other premium problem on the site.

Implement solve(...)