Skip to content
Maps

State bars

State-level bar charts for ranking US states on a single metric. Two implementations: a sortable Recharts version with search and expand affordances, and an Observable Plot version with built-in sorting. Both built around BRFSS state-level data but accept any 50-row state dataset.

2 variants
Theme

Recharts (sortable + searchable)

Recharts state bar with search box and expand-on-click affordance. Type to filter the list.

Installshow
viz add recharts/brfss/state-bar-sortable-v1
Theme

Observable Plot

Observable Plot version of the same chart with built-in sorting. Use when you prefer Plot's declarative model.

Installshow
viz add plot/brfss/state-bar-v1
Usageshow
TypeScript
import { SortableStateBar } from '@/viz/components/recharts/brfss/state-bar-sortable-v1';

Metadata

  • FrameworkRecharts
  • CategoryMaps
  • Subcategorybrfss
  • Sourcerecharts/brfss/state-bar-sortable-v1
geographic us-states sortable brfss

Dependencies

recharts