-
Notifications
You must be signed in to change notification settings - Fork 41
Conversation
unless value >= 0 and value < 10 then | ||
return value | ||
else | ||
return ["zero", "one", "two", "three", "four", "five", "six", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use %w
or %W
for an array of words.
As of now, you can see some listings for the "top products" of each state in terms of revenue, all lands, and federal production. For instance: California, Utah, and Texas. You can see some edge cases of very little data in states like Massachusetts, Rhode Island, Delaware, and Georgia. |
Heads up, @RyanSibley: I just pushed an update that adds percentage figures to the state revenue and production historical tables, and adds some CSS to right-align numbers so that they're easier to read. Federalist should be done building it in a couple of minutes. Next up: disbursements! |
Okay, now we've got "top-level" state disbursements by fund, which only includes "Onshore" and "Offshore" fund sources. I've broken these down in a table like so:
I only see 2012 and 2013 data in this spreadsheet, which is not super interesting, but it's something. Next step is to see how complicated it'll be to incorporate the fund-specific data, such as historic preservation. |
@shawnbot it begins! I'm excited. As for the two years -- yep, not super interesting. I remember on our beta site back in the day we did the bubble chart -- and switching between the years turned out to be a pretty big yawn because the funds don't change much year to year. The story here is not likely in the year-over-year change. |
Heads up, @gemfarmer: you'll need to |
So I have the historic preservation fund data in our db now, but I'm not quite sure what to do with it on the state pages. The HPF (Historic Preservation Fund) data goes from 2011-2014, so it overlaps with the summary data, but I feel like it would be weird to show only HPF data for 2011 and 2014. Maybe we only show HPF data for the years that we have summary data? It's worth trying out, but I have a feeling that the HPF values are going to be confusing because—according to @mentastc, and the summary spreadsheet—they're part of the Offshore fund. So right now Onshore + Offshore = Total, but adding HPF muddies the picture a bit. |
Update for you @gemfarmer: I've moved all of the database import and site data generation scripts to the new project-level Makefile. The data/Makefile still exists, but will slowly be deprecated in favor of the new database approach. To make the database you now just run: make db from the project root. You can then update the site's Jekyll data (the new stuff in make site-data There are a couple of things that are annoying about Makefiles:
|
@gemfarmer I'm particularly interested in whether if, after you run the above commands, there are any git diffs in the |
@shawnbot didn't see this. Will run the commands and get back to you. |
@shawnbot looks great except I'm running into this error: |
Did you add |
@shawnbot just took another stab at this. I originally installed the dev dependencies with node v4.2.6 instead of v5.0.0, and for whatever reason it didn't add Here is a sample from my diff |
Weird FFx/Safari bars bug
Iconic nav
Print stylesheet
The source data (from EIA) for all lands coal production contains state names like "Kentucy (Northern)" and "Pennsylvania (Anthracite)". This change updates the transform for coal data to strip the parentheticals, and commits the newly rendered data. I discovered this issue while investigating #1644, but this is not a full fix.
State page restructuring and Montana content
Fix coal all lands production data for 2012 onward
Closing in favor of #1651 |
😎 preview on Federalist
This is a very work in progress PR that adds state pages with data from our new database workflow in #1353. The goal here is to determine whether we're on the right track in our wireframing exercise, #1347.
There's no index of all of the state pages yet, but you can see them by changing the URL, for instance with Utah and Texas. Right now we've only got revenue and production on federal land, but all lands production and jobs are on the way.