Sam Petulla

Editor, CNN Politics

A few favorites

See what your congress members have done about gun control

Location-based look-up to output a gun control report card

How the special elections predict the midterm elections

Collaborated with Harry Enten to produce this analysis of every special election

How the tax bill affects your paycheck

Collaborated with a think tank to build this tax calculator, writing a lot of R to parse output from open-source tax modeling software. Note: I pitched the story and ran the model but did not design the calculator.

A wave of Republicans is leaving congress

Retirement tracker

Awesome visualization research

I'm a maintainer of a resource on data visualizaton research and user studies

Who has left the Trump administration?

Trump administration departures tracker

Left in the Lurch

Analyzed data, reported, wrote and created visualizations for an NBC News project about the future of the Democratic party. I modeled demographics to guide the article's editorial direction, arranged interviews and worked closely with NBC's design and product teams.

Life of a Ballot

An NBC News mobile experiment. I contributed to the concepting, development and design and I reported out and wrote the story with a colleague.

Improving D3-color and adding new D3 color modules

I've been added as a contributor to D3.js to build color modules for D3 based on newer perceptually-uniform color spaces not yet available in D3's color library. A beta of the first module, d3-hsluv, is on Github. I'm working on a second module, CIECAM16, with Connor Gramazio.

Geography of Poverty

One of the first ambitious projects I worked on. It had a bit of everything: GDAL, scrolly charts, a one-off bundling and build system for the code, satellite imagery processing, original reported datasets.

CNN graphic articles

I write and visualize short and long pieces for CNN.com

See what your congress members have done about gun control

Location-based look-up to output a gun control report card

The Art of the Trumpian Non-Answer

Quantifying the Trump answer-dodge

How the tax bill affects your paycheck

Note: I pitched the story and ran the model but did not design the calculator. Collaborated with AEI to build this tax calculator, writing a lot of R to parse output from open-source tax modeling software.

A wave of Republicans is leaving congress

Retirement tracker

The Puerto Rican migration could shape Florida politics for years to come

Reporting on and measuring the migration out of Puerto Rico

How Trump's State of the Union compares with 100 years of past speeches

A look at the language of the SOTU

How Trump's stock market compares to past Presidents

A quick visual of 100 years of stock market data

Interactive essays

Left in the Lurch

Analyzed data, reported, wrote and created visualizations for an NBC News project about the future of the Democratic party. I modeled demographics to guide the article's editorial direction, arranged interviews and worked closely with NBC's design and product teams.

United States of Trump

Similar to Left in the Lurch, I led data analysis and designed visualizations for this feature NBC News project about the 2016 Republican primaries. The project won New York Press Club Award and Shorty awards.

Life of a Ballot

An NBC News mobile experiment. I contributed to the concepting, development and design and I reported out and wrote the story with a colleague.

Trump Coalition

Precinct-level analysis of Trump's base, close-up in three counties.

Geography of Poverty

I oversaw data analysis, visualizations and code for the first five parts of this series. The project has many visual elements and interactives. My favorite chapters are the South and the introduction.

Shuttered

I led development and visualization on this MSNBC feature, created with Irin Carmon.

Recent projects

On the side, I'm interested in adding dplyr-like functionality to D3 (and Observable). I'm also trying to improve my data modeling skills and to contribute to the Stan project. But these are some things further developed.

Improving D3-color and adding new D3 color modules

I've been added as a contributor to D3.js to build color modules for D3 based on newer perceptually-uniform color spaces not yet available in D3's color library. A beta of the first module, d3-hsluv, is on Github. I'm working on a second module, CIECAM16, with Connor Gramazio.

ASCII dataset R package

An R package that simplifies reading ASCII fixed-width polling datasets from the 1980s and 90s. I made this so Harry Enten can use datasets from the Roper Center in CNN stories.

Maps + Chartbuilder

I added a way to render US, world, county and district choropleth and cartogram maps with Quartz's Chartbuilder, working in partnership with Quartz on the project. I wrote a lot of React and ES2015 Javascript.

D3.js on TV (election night)

NBC News and MNSBC used D3.js to render maps on election night. I created an initial prototype that created the impetus to further pursue the project. I then managed a contractor who helped us build the visualizations that ran on election night. A few screengrabs here.

NBC News Election Results

I oversaw the design and development of visualizations for the NBC News's election results pages. We presented national Presidential, House, Senate and governors races. We build a Node.js server-side implementation of D3 and Slackbots to optimize the process.

NBC News graphic articles

Unfortunately, NBC News is redesigning and graphic embeds are not carried over. So this is a selection.

All NBC News articles

An easy way to find my latest articles is to search Google, with the domain restricted and my name as the query.

Tracking President Trump’s Visits to Trump Properties

Slack-integrated Google Drive project to track Trump's visits, with graphics output for our social team.

Vehicles are Becoming the Weapons of Choice for Terrorists

Original analysis of terrorist attack trends.

See What Your State Is Doing to Close the Gender Wage Gap

Interactive visualization of the gender wage gap.

Remainders

Media strategy writing

I've written about the media for Nieman Lab, CJR, Google and The Content Strategist, a publication I helped create with my former colleagues at Contently.

Reporting abroad

In separate trips, I reported abroad. In one trip, from Myanmar and South Korea. In the other, I reported from Israel, Jordan and Turkey. My Asia trip focused on politics and technology. My trip to the Middle East looked at religion and politics.

Talks

I've given talks at Visualized and the NYC D3.js meetup. I previously taught at General Assembly.

Alberto Cairo

Wrote a nice post about me once..

Social media

I'm on Twitter, Github and Facebook.