ft-interactive/us-elections-polltracker

Name: us-elections-polltracker

Owner: FT Interactive News

Description: 2016 US presidential election polling

Created: 2016-06-29 22:46:29.0

Updated: 2017-01-11 10:44:36.0

Pushed: 2018-01-02 05:22:51.0

Homepage: https://ig.ft.com/us-elections/polls

Size: 3780

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

FT 2016 US Elections Poll Tracker & Results Map

Partially based on the FT Brexit polling app.

A web service scraping data from Real Clear Politics' historical averages polling data feed for the 2016 general election between Trump v Clinton and publishing it as SVG charts.

The format for URLs looks like /polls.svg?size=300x400&type=both&background=fff1e0&startDate=July 1, 2015&endDate=June 29, 2016&fontless=true&state=us.

Settings

|param|options|default| |—|—|—| |size|{number}x{number}|300x400| |type|line, area|line| |background|hexcode (don't include the hash)|| |logo|true, false|false| |startDate|Month day, year|July 1, 2015| |endDate|Month day, year|<today's date>| |fontless|true, false|true| |state|two-letter state abbreviation, us|us|

Local development
First-time setup
BASE_URL=postgres://us@127.0.0.1/us2016
ER=us
TABASE=us2016
Running locally for development
Licence

This software is published by the Financial Times under the MIT licence.

Please note the MIT licence includes only the software, and does not cover any FT content made available using the software, which is copyright © The Financial Times Limited, all rights reserved. For more information about re-publishing FT content, please contact our syndication department.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.