Hyperlocal Election Mapping
Made Easy
Timothy Goddard, Depiction, Inc.
Election Results by Precinct
+ Precinct maps _
Election Maps
• Finding the data
• Preparing the data
• Merging the data
• Colorizing the data
• Finding the data
• Preparing the data
• Merging the data
• Colorizing the data
Using Depiction
What is Depiction?
• Mapping, Simulation & Collaboration
Software
• Bringing expert-level capabilities (like
election mapping) to everyday people
• Used in emergency management, real
estate, small business and more.
• Finding the data
–This is the hard part!
–Two data types:
•Map/GIS Data
•Election Results
Finding the Data
• Map/GIS Data
– “Precincts” or “Voting Districts”
– Accessible at the Statewide or County level
– Shapefile format
– If not available online, try calling
• Statewide:
• County:
Finding the Data
• Election data
– Precinct level results
– From different agencies
• Statewide
– Secretary of state, board of elections
• County level
– Auditor, clerk, registrar, elections division
– Usually not in a spreadsheet format
• Which it needs to be!
• Best option—call & ask for a spreadsheet or similar
document
• Preparing the data
–Turn it into a spreadsheet
–Save it as CSV
–Different types take different
methods
Preparing Data
• Election Result Data Types
– Spreadsheets
• These are great & easy!
Preparing Data
• Election Result Data Types
– Delimited
– Paste into Excel
– ‘Text to Columns’
Semicolon:
Preparing Data
• Election Result Data Types
– HTML Tables
• Easiest tool: TableTools extension for FireFox
• Copy as tab-
delimited text
• Paste into Excel
Preparing Data
• Election Result Data Types
– More difficult types
• Straight Text
• Multiple HTML Tables
– Copy/Paste the whole thing
into Excel
– “Slice & Dice” the
data
• Slicing & Dicing
– Filtering
• To separate out columns
• Paste into new sheet
• Slicing & Dicing
– Search & Replace
• To remove extraneous information
• Slicing & Dicing
– Text to Columns
• To split off extraneous information
that isn’t all identical
• Slicing & Dicing
– Do this column by column to build your
spreadsheet
• Keep everything in its original order!
• If necessary, split the
precinct number into its
own column
Preparing Data
• Preparing GIS Data
– Create a new Depiction file
– Set the area you want
– Import the Shapefile into Depiction
• (just drag & drop!)
• Finishing election data preparation
– Be sure to include the precinct number or other
unique identifier as a column
– Name the unique identifier column “EID”
– The EID, or ‘Element ID’ is what will match the
precinct shapes to the election information.
• Add vote percentage columns
– Add a column for the one candidate percentages.
– Add a formula that calculates the percentage—
something like: =B2/(B2+C2)
– ‘Fill down’ the entire column
– Do the same for the second candidate. Something
like: =C2/(B2+C2)
– Set the decimal places to desired number (2-4,
probably)
– Save as CSV and close it.
• Preparing GIS Data
– Find the unique precinct identifier field that
matches your voting data
• “PRECINCTNUM”,“NUMBER” “Name,” etc
• Export it all to GML
• Delete the elements
• Preparing GIS Data
– Open the GML in a text editor
– Search & replace the precinct field name with EID
– Also remove
the “description”
field
– Save the GML
delete the
.xsd file
– Import the GML back into Depiction.
Merging the Data
• Import the CSV
– Just drag, drop, and click ‘import’
Merging the data
• Wait for the import to complete
– As long as your EIDs match up correctly, the new data
should be appended to the precinct elements.
– An alert will say
nothing was
imported, because
no new elements
were added.
– But new fields
should be present
Colorizing the Data
• Click “Colorize”
• Select “thematic mapping”
• Choose one of the percent
fields as the property value.
• Set the colors, click OK.
• You can also use a “Manual range selection”
– 0 – 1 for absolute coloring
– .499 - .501 for binary “red/blue” coloring
– .25 - .75 for more distinct absolute coloring
Tada!
Allegheny Co,
Pennsylvania
2010 Senate
Election
Tips & Tricks
• Be sure your precinct data is up to date
• Be patient when dealing with hundreds or
thousands of precincts
• Do spot checks to be sure your data is correct
– Between original election data & final CSV
– Between original election data & final depiction
• Set hovertext for the precincts to name and both
candidate percentages & total votes
• To compare multiple elections, delete the EID
field, re-import the GML and repeat merge w/
new data
For more information:
www.depiction.com

More Related Content

PPTX
Introduction to Tableau
PPTX
Visualizing Data using Tableau
PPT
03 sajjad ali -qgis working with raster
PPTX
Auto Charting
PPTX
Visualizing Time with tableau
PPTX
Research 11. change table into data visualization easily
PPTX
Tableau course in pune
PDF
QGIS Module 2
Introduction to Tableau
Visualizing Data using Tableau
03 sajjad ali -qgis working with raster
Auto Charting
Visualizing Time with tableau
Research 11. change table into data visualization easily
Tableau course in pune
QGIS Module 2

What's hot (9)

PDF
How to Supercharge your Location Data and Reporting & Analysis
PPTX
Annette BI Portfolio
PPTX
CONNECTING BENTLEY AND ESRI TERRAIN DATA
PPTX
HEC-RAS LiDAR Cross Sections With Microstation SS3 V8i
PPT
Nextop Cloud computing Platform
PDF
Vetter employee residence reports weld county
PPT
Geolectioxydata
PPTX
Identify Graphs in excel
PDF
Design Principles of Excel Dashboards & Reports
How to Supercharge your Location Data and Reporting & Analysis
Annette BI Portfolio
CONNECTING BENTLEY AND ESRI TERRAIN DATA
HEC-RAS LiDAR Cross Sections With Microstation SS3 V8i
Nextop Cloud computing Platform
Vetter employee residence reports weld county
Geolectioxydata
Identify Graphs in excel
Design Principles of Excel Dashboards & Reports
Ad

Similar to Hyperlocal Election Mapping Made Easy (20)

PDF
HFM Extended Analytics
PPT
DataPreprocessing.ppt
PDF
Android mobile based Field Data Collection
PDF
QGIS Tutorial 1
PPT
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
PPTX
1Chapter_ Two_ 2 Data Preparation lecture note.pptx
PDF
Au 2007 It’S Not Cad To Gis Final
PPT
Data preprocessing
PPTX
Data collection and input overview
PPSX
Web Based GIS LeadGen Introduction
PDF
Data-Interpretation-Workshop-Presentation.pdf
PPTX
Tableau calculations and experience.pptx
PDF
INPUT AND OUTPUT DATA IN GIS.pdf
PPTX
102523_CCC TUG.pptx
PPTX
PowerBI importance of power bi in data analytics field
PPT
Preprocessing_new.ppt
PPTX
Unit III.pptx
PPT
NTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
PPTX
Getting started with Tableau
PDF
project
HFM Extended Analytics
DataPreprocessing.ppt
Android mobile based Field Data Collection
QGIS Tutorial 1
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
1Chapter_ Two_ 2 Data Preparation lecture note.pptx
Au 2007 It’S Not Cad To Gis Final
Data preprocessing
Data collection and input overview
Web Based GIS LeadGen Introduction
Data-Interpretation-Workshop-Presentation.pdf
Tableau calculations and experience.pptx
INPUT AND OUTPUT DATA IN GIS.pdf
102523_CCC TUG.pptx
PowerBI importance of power bi in data analytics field
Preprocessing_new.ppt
Unit III.pptx
NTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
Getting started with Tableau
project
Ad

Recently uploaded (20)

PDF
CloudStack 4.21: First Look Webinar slides
PDF
Getting Started with Data Integration: FME Form 101
DOCX
search engine optimization ppt fir known well about this
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Five Habits of High-Impact Board Members
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
STKI Israel Market Study 2025 version august
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
CloudStack 4.21: First Look Webinar slides
Getting Started with Data Integration: FME Form 101
search engine optimization ppt fir known well about this
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Five Habits of High-Impact Board Members
Univ-Connecticut-ChatGPT-Presentaion.pdf
Benefits of Physical activity for teenagers.pptx
DP Operators-handbook-extract for the Mautical Institute
1 - Historical Antecedents, Social Consideration.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
Module 1.ppt Iot fundamentals and Architecture
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
STKI Israel Market Study 2025 version august
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Zenith AI: Advanced Artificial Intelligence
Web Crawler for Trend Tracking Gen Z Insights.pptx
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
observCloud-Native Containerability and monitoring.pptx
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
A contest of sentiment analysis: k-nearest neighbor versus neural network

Hyperlocal Election Mapping Made Easy

  • 1. Hyperlocal Election Mapping Made Easy Timothy Goddard, Depiction, Inc.
  • 2. Election Results by Precinct + Precinct maps _ Election Maps
  • 3. • Finding the data • Preparing the data • Merging the data • Colorizing the data
  • 4. • Finding the data • Preparing the data • Merging the data • Colorizing the data Using Depiction
  • 5. What is Depiction? • Mapping, Simulation & Collaboration Software • Bringing expert-level capabilities (like election mapping) to everyday people • Used in emergency management, real estate, small business and more.
  • 6. • Finding the data –This is the hard part! –Two data types: •Map/GIS Data •Election Results
  • 7. Finding the Data • Map/GIS Data – “Precincts” or “Voting Districts” – Accessible at the Statewide or County level – Shapefile format – If not available online, try calling
  • 9. Finding the Data • Election data – Precinct level results – From different agencies • Statewide – Secretary of state, board of elections • County level – Auditor, clerk, registrar, elections division – Usually not in a spreadsheet format • Which it needs to be! • Best option—call & ask for a spreadsheet or similar document
  • 10. • Preparing the data –Turn it into a spreadsheet –Save it as CSV –Different types take different methods
  • 11. Preparing Data • Election Result Data Types – Spreadsheets • These are great & easy!
  • 12. Preparing Data • Election Result Data Types – Delimited – Paste into Excel – ‘Text to Columns’ Semicolon:
  • 13. Preparing Data • Election Result Data Types – HTML Tables • Easiest tool: TableTools extension for FireFox • Copy as tab- delimited text • Paste into Excel
  • 14. Preparing Data • Election Result Data Types – More difficult types • Straight Text • Multiple HTML Tables – Copy/Paste the whole thing into Excel – “Slice & Dice” the data
  • 15. • Slicing & Dicing – Filtering • To separate out columns • Paste into new sheet
  • 16. • Slicing & Dicing – Search & Replace • To remove extraneous information
  • 17. • Slicing & Dicing – Text to Columns • To split off extraneous information that isn’t all identical
  • 18. • Slicing & Dicing – Do this column by column to build your spreadsheet • Keep everything in its original order! • If necessary, split the precinct number into its own column
  • 19. Preparing Data • Preparing GIS Data – Create a new Depiction file – Set the area you want – Import the Shapefile into Depiction • (just drag & drop!)
  • 20. • Finishing election data preparation – Be sure to include the precinct number or other unique identifier as a column – Name the unique identifier column “EID” – The EID, or ‘Element ID’ is what will match the precinct shapes to the election information.
  • 21. • Add vote percentage columns – Add a column for the one candidate percentages. – Add a formula that calculates the percentage— something like: =B2/(B2+C2) – ‘Fill down’ the entire column – Do the same for the second candidate. Something like: =C2/(B2+C2) – Set the decimal places to desired number (2-4, probably) – Save as CSV and close it.
  • 22. • Preparing GIS Data – Find the unique precinct identifier field that matches your voting data • “PRECINCTNUM”,“NUMBER” “Name,” etc • Export it all to GML • Delete the elements
  • 23. • Preparing GIS Data – Open the GML in a text editor – Search & replace the precinct field name with EID – Also remove the “description” field – Save the GML delete the .xsd file – Import the GML back into Depiction.
  • 24. Merging the Data • Import the CSV – Just drag, drop, and click ‘import’
  • 25. Merging the data • Wait for the import to complete – As long as your EIDs match up correctly, the new data should be appended to the precinct elements. – An alert will say nothing was imported, because no new elements were added. – But new fields should be present
  • 26. Colorizing the Data • Click “Colorize” • Select “thematic mapping” • Choose one of the percent fields as the property value. • Set the colors, click OK. • You can also use a “Manual range selection” – 0 – 1 for absolute coloring – .499 - .501 for binary “red/blue” coloring – .25 - .75 for more distinct absolute coloring
  • 28. Tips & Tricks • Be sure your precinct data is up to date • Be patient when dealing with hundreds or thousands of precincts • Do spot checks to be sure your data is correct – Between original election data & final CSV – Between original election data & final depiction • Set hovertext for the precincts to name and both candidate percentages & total votes • To compare multiple elections, delete the EID field, re-import the GML and repeat merge w/ new data