1---2name: data-visualization3description: Chooses encodings, chart types, layouts, and rendering tech so visualizations communicate accurately and accessibly. Use this skill when building charts, graphs, or dashboards, picking SVG/Canvas/WebGL, or making visuals colorblind-safe and screen-reader accessible. Do not use when/for general UI layout without data graphics (use ui-design-principles) or backend analytics pipelines.4---56# Data Visualization78## Critical rules910- Visualization is communication — every visual element must serve understanding.11- Prefer established algorithms/libraries (dagre, d3-force, ELK) over custom layout.12- Encode by perceptual accuracy: position > length > angle > area > color.13- Never rely on color alone; pair with shape, pattern, or labels.14- Match rendering to scale: SVG <1000, Canvas 1000–10000, WebGL >10000.15- Before chart selection catalogs or rendering/a11y detail, read the matching resource below.1617## Workflow18191. State the question the viz must answer and the data volume.202. Before picking a chart type or encoding, read [references/chart-selection.md](references/chart-selection.md).213. Choose encoding/chart; reject pie-heavy, 3D, dual-axis, and non-zero bar baselines when they mislead.224. Before implementing layout/render/a11y, read [references/rendering-and-a11y.md](references/rendering-and-a11y.md).235. Pick SVG/Canvas/WebGL and a layout library; keep layout off the main thread when heavy.246. Add title/desc, keyboard support, table fallback; verify colorblind-safe encoding.2526## Resources2728- [references/chart-selection.md](references/chart-selection.md) — encoding hierarchy, chart-by-question, color, anti-patterns. Read when choosing a chart.29- [references/rendering-and-a11y.md](references/rendering-and-a11y.md) — render thresholds, layouts, perf, a11y, libraries. Read when implementing.3031## Validation3233- [ ] Question → chart type selected accordingly34- [ ] Data volume → rendering technology matches threshold35- [ ] Established algorithm/library used (not custom layout)36- [ ] Colorblind-safe: shape/pattern/label, not color alone37- [ ] Accessible: title, description, table fallback, keyboard38- [ ] Perceptually honest: position encoding, zero baseline, 2D, single axis meaning3940## Constraints4142- General UI without data graphics → `ui-design-principles`. Backend analytics pipelines are out of scope.43- Adjacent: `design-principles`, `documentation-standards`.