Stata × Google Charts

Interacting with Google from Stata

A live gallery for the googlechart Stata package, built entirely from one Stata do-file. Every chart below was written to a self-contained HTML file by googlechart using the 2025 County Health Rankings state-level data.

How to read this page

Each panel is an interactive Google Chart. Hover for tooltips; use the Export menu (PNG / SVG) and the View data table / CSV controls beside each chart. Charts fade in as you scroll.

  1. Internet is required. Google Charts loads its engine from Google's CDN at view time, so these pages do not render offline.
  2. Reproduce it. Install the package in Stata: net install googlechart, from("https://raw.githubusercontent.com/ericabooth/googlechart-stata-public/main/") replace force, then run the article's googletools_example.do.
  3. Palette. The Texas 2036 brand (navy #1B2D55, orange #D44500, Montserrat) is applied throughout via the tx2036style option.

1Uninsured rate by state (choropleth)

A US state-level choropleth of the 2025 uninsured rate. Texas has the highest uninsured rate in the nation. GeoChart supports country and US-state resolution.

googlechart uninsured, name(geo_code) type(geo) georegion("US") georesolution("us-states") tx2036style scheme(blues) ...

2Highest-uninsured states (ranked bar)

The fifteen states with the highest uninsured rate, with on-bar value labels (directlabels). Horizontal bars keep long labels readable.

googlechart uninsured, name(usps) type(bar) directlabels tx2036style download datatable downloadpos(below) ...

3Income vs premature death (scatter)

Each point is a state: median household income against premature death (years of potential life lost). Extra fields ride along in the tooltip via tooltipvars().

googlechart median_income premature_death, name(state) type(scatter) tooltipvars(uninsured child_poverty) tx2036style ...

4Poverty, death, and rurality (bubble)

A four-variable view: child poverty (x), premature death (y), rural share (bubble size), and an uninsured band (color, via over()).

googlechart child_poverty premature_death, name(usps) over(highunins) sizevar(pct_rural) time(year) type(bubble) ...

5All measures (searchable table)

Every state and measure in one interactive table with a free-text search box (tablesearch) and a sticky header (tableheadersticky). Type a state or number to filter live.

googlechart, type(table) tooltipvars(state uninsured median_income ...) tablesearch tableheadersticky ...

6Texans on state policy (diverging stacked bar)

A Pew-style diverging stacked bar for Likert items, with the neutral category centered on zero. The survey data here are illustrative (not from County Health Rankings).

googlechart share, name(q) level(response) type(divbar) levelorder("Strongly disagree|...|Strongly agree") centerlevel(Neutral) ...