Data viz

From aladicf/better-web-ui · View interactive version

Data viz is an AI agent skill from the GitHub repository aladicf/better-web-ui. Design or improve data visualizations, charts, and data presentation interfaces. Use when the user asks to add charts, build dashboards, visualize data, choose chart types, make data accessible, or present metrics and analytics.

How to use this skill

Skill file

Create data visualizations that clarify rather than decorate. The goal is not to make data look impressive; it is to help users understand patterns, compare values, and make decisions.

Consult the data visualization reference for chart type selection, responsive patterns, accessible data tables, color-vision-friendly palettes, and interaction design.

Consult the colorblindness UX reference when semantic states, chart palettes, or category colors must remain distinguishable under color-vision deficiencies.

Consult the complex table UX reference when a data table is a better or complementary presentation to a chart.

MANDATORY PREPARATION

Users start this workflow with /data-viz. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first. Additionally gather: what question the user is trying to answer with the data, who the audience is, and whether the data updates in real time or is static.

Assess Visualization Needs

Understand the data story before choosing a chart:

  1. What is the user trying to understand?
  1. What is the data shape?
  1. What is the context?

Visualization Dimensions

Chart Selection

Match the chart to the data relationship, not the aesthetic preference.

Bar charts for comparing values across categories. Use horizontal bars when category names are long. Start the value axis at zero.

Line charts for trends over time. Limit to ~5 lines. Label lines directly at the end when possible.

Scatter plots for relationships between two variables. Add trend lines only when correlation is real. Label interesting outliers.

Histograms for frequency distributions. Use when the shape of the data (clustering, spread, skew) matters.

Treemaps for hierarchical part-to-whole relationships with many categories.

Avoid pie charts except when there are very few categories and one slice clearly dominates. Even then, prefer donut charts or stacked bars.

Accessible Data Presentation

Every chart must have an accessible alternative.

Color Strategy

Use color intentionally in data visualization.

Responsive Behavior

Charts must remain legible across viewport sizes.

Interaction Design

Dashboard Design

Dashboards combine multiple visualizations into an at-a-glance surface.

Layout principles:

Interactivity:

Anti-Patterns

Verify Visualization Quality

Before shipping:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.