Components Library Operations DataVizInspector
DataVizInspector
Chart QA inspector for source, rows, units, alt text, and legend readiness.
Live demo
01Chart QA
Data viz inspector
100 ready
Catalogue readiness trend
line · 12 rows
- Pass Title Reader needs a visible chart title.
- Pass Rows Charts need at least one data row.
- Pass Source Source metadata should travel with the chart.
- Pass Alt text Visuals need accessible summaries.
- Pass Units Axes and measures should expose units.
- Pass Legend Grouped visual encodings need a visible legend.
Implementation
02 DataVizInspector.svelte
<script lang="ts">
import DataVizInspector from '$lib/components/DataVizInspector.svelte';
</script>
<DataVizInspector {specs} />DataVizInspector scores chart specs before they ship. It keeps source, alt text, units, row count, and legend checks visible so charts do not look finished while missing reader-critical context.
Logic explainer
03What Does It Do? (Plain English)
DataVizInspector scores chart specifications against practical QA checks: title, rows, source, alt text, units, and legend visibility.
How It Works (Pseudo-Code)
receive chart specs
choose active chart
run chart QA checks
calculate score and verdict
render pass/review checklistProps Reference
| Prop | Type | Default | Description |
|---|---|---|---|
specs |
DataVizSpec[] |
Required | Chart specs to inspect. |
title |
string |
"Data viz inspector" |
Heading above the inspector. |
Dependencies
No external dependencies.
API
04| Prop | Type | Description |
|---|---|---|
specs | DataVizSpec[] | Chart specs to score. |
title | string | Inspector heading. |