Skip to content

rmosolgo/usda-ers-food-dollar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USDA ERS Food Dollar

For each $1 spent on food in a given context, where does that dollar go? (More info)

See it on github pages: http://rmosolgo.github.io/usda-ers-food-dollar/

Example

image

How

  • Pull data from the API with ruby food_dollar.rb {API_KEY}
  • Write data into food_dollar.json
  • Render charts with index.html + food_dollar.js

To do

  • Handle missing values
    • Right now they're 0 but that causes the graph to be equally split
    • seems like some tables only have data for certain years

About

Draw data from the USDA ERS API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published