BuildlyBuildly
DashboardExercisesProfileHelp
Data Science/Module 4: Data Visualization/Subplots2/3
Exercise·7 min·10 XP

Line and Bars Side by Side

Context. A mini-dashboard: the monthly revenue trend on the left, a regional comparison on the right. Different chart types, one figure.

Your task. Write make_dashboard(months, revenue, regions, region_sales) — a 1×2 grid with a revenue line in the left panel and one bar per region in the right panel. Return fig, axes.

Example. axes[0].plot(...) for the trend, axes[1].bar(...) for the regions.

Notes. Each panel has its own plotting methods — nothing is shared between them.

Previous
A Two-Panel Figure
Next
Title Every Panel