Why Charts
A table of numbers alone hides patterns. Using one sales dataset, I practiced by mapping each chart type to its purpose.
| Chart | When to use |
|---|---|
| Line | Trend over time |
| Bar / Grouped Bar | Category comparison / category + segment |
| Pie | Proportion |
| Histogram | Distribution |
| Box | Outliers, median |
| Scatter | Correlation of two variables |
| Heatmap | Row/column mapping |
What I Practiced
- Drew monthly sales trends with
marker='o',linewidth=2,grid=True - Drew multiple lines per region on one chart and added a
legend - Drew grouped bars splitting region and product via
hue - Drew pie charts showing proportions with
autopct='%.1f%%' - Overlaid two differently scaled metrics on a twin axis
- Applied a log scale when value ranges are extreme
- Highlighted a single bar with color and added an
annotation
Korean Fonts and Style
plt.style.use("seaborn-v0_8")
plt.rcParams["font.family"] = "Malgun Gothic"
plt.rcParams["axes.unicode_minus"] = FalseI fixed broken Korean text and minus signs rendering as boxes via rcParams. It was an essential setup I repeated throughout.
The 3C Principle
The closing lesson was an attitude toward visualization: clarity, consistency, and context. A chart whose message the viewer reads at a glance beats a flashy one.
Takeaway
Key point
The same data becomes a completely different story depending on the chart. Later in EDA, when checking distributions and correlations, I used the sense for chart selection I built here.