A stackplot draws multiple area series stacked on top of one another, visualizing both individual category trends and the macro total sum over time.
Geological rock layers stacked on top of each other over historical eras.
`plt.stackplot(x, y1, y2, y3, labels=..., colors=...)`.
plt.stackplot(x, y1, y2, labels=['A', 'B'])Avoid the top errors and bad plotting practices that trip up new Python developers
Switch from abstract numbers to relatable Cricket, Cinema & Business charts
Write Matplotlib code to solve the objective and see your live plot render
Create a stackplot for `x=[1, 2, 3]`, `y1=[5, 10, 15]`, `y2=[2, 4, 6]` with `labels=['Series 1', 'Series 2']` and `colors=['#6366F1', '#00D9C0']`.
✓ plt.stackplot✓ labelsTest your understanding to unlock the lesson completion badge