1---2name: visualization-builder3description: Create effective, publication-ready data visualizations. Use when choosing chart types, designing presentation visuals, building dashboard charts, or applying visual design best practices to data output.4---56# Visualization Builder78# When to use9- Choosing the right chart type for a specific analytical message10- A chart exists but is cluttered, misleading, or failing to make the point11- Building a chart for an executive presentation that must work without verbal explanation12- Producing consistent, branded visualisations across a report or dashboard13- Creating accessible charts that work for colorblind viewers or screen readers1415# Process161. **Identify the message type** — classify the chart's purpose: comparison (bar), trend over time (line), composition / part-of-whole (stacked bar, pie only for 2–3 categories), distribution (histogram, box plot), or relationship (scatter). The message type determines the chart type. See `references/chart_selection_guide.md`.172. **Select and load the data** — confirm the data is at the right grain for the chart. Aggregations (e.g., groupby month) should happen before plotting, not inside the chart library.183. **Build the base chart** — use `scripts/chart_builder.py` with pre-set professional styling (whitegrid, sans-serif, accessible color palette). Set axes, ticks, and scale deliberately — default settings are often wrong.194. **Apply visual hierarchy** — make the most important data element visually dominant (bolder line, darker bar, distinct color). De-emphasise secondary series. Remove every element that doesn't contribute to the message (gridlines at 0.2 alpha, no top/right spines). See `references/visual_design_principles.md`.205. **Annotate for the reader** — add a descriptive title that states the finding ("Mobile churn is 2× desktop"), not the variable names ("Churn by device type"). Annotate key data points, thresholds, and reference lines directly on the chart. Add a data source and date.216. **Export and validate** — export at 300 DPI for print or 150 DPI for web. View the chart at the intended display size. Check: is the key message legible in under 5 seconds? Does it work in greyscale? Complete `assets/viz_spec_template.md` if the chart is part of a larger deliverable.2223# Inputs the skill needs24- The data to be visualised (at the correct aggregation grain)25- The single key message the chart must communicate26- The audience (technical or executive) and the display context (presentation slide, report, dashboard, email)27- Brand colors or style guidelines if applicable28- Any accessibility requirements (colorblind palette, alt text)2930# Output31- `scripts/chart_builder.py` — creates professional matplotlib/seaborn charts with pre-set styling, annotation helpers, and export settings32- `references/chart_selection_guide.md` — which chart type for which message; common chart mistakes and how to fix them33- `references/visual_design_principles.md` — color, typography, hierarchy, annotation, and accessibility principles34- `assets/viz_spec_template.md` — spec template for a chart: message, data source, chart type, annotations, export requirements