SlideShare a Scribd company logo
1 of 29
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

What's hot

How to Supercharge your Location Data and Reporting & Analysis
How to Supercharge your Location Data and Reporting & AnalysisHow to Supercharge your Location Data and Reporting & Analysis
How to Supercharge your Location Data and Reporting & AnalysisSafe Software
 
Annette BI Portfolio
Annette BI PortfolioAnnette BI Portfolio
Annette BI Portfolioatako
 
HEC-RAS LiDAR Cross Sections With Microstation SS3 V8i
HEC-RAS LiDAR Cross Sections With Microstation SS3 V8iHEC-RAS LiDAR Cross Sections With Microstation SS3 V8i
HEC-RAS LiDAR Cross Sections With Microstation SS3 V8iChristopher L Chatfield, P.E.
 
Vetter employee residence reports weld county
Vetter employee residence reports weld countyVetter employee residence reports weld county
Vetter employee residence reports weld countyGeCo in the Rockies
 
Geolectioxydata
GeolectioxydataGeolectioxydata
Geolectioxydatadave west
 
Identify Graphs in excel
Identify Graphs in excelIdentify Graphs in excel
Identify Graphs in excelfun computing
 
Design Principles of Excel Dashboards & Reports
Design Principles of Excel Dashboards & ReportsDesign Principles of Excel Dashboards & Reports
Design Principles of Excel Dashboards & ReportsWiley
 

What's hot (9)

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

Similar to Hyperlocal Election Mapping Made Easy

HFM Extended Analytics
HFM Extended AnalyticsHFM Extended Analytics
HFM Extended Analyticsaa026593
 
Android mobile based Field Data Collection
Android mobile based Field Data CollectionAndroid mobile based Field Data Collection
Android mobile based Field Data Collectionpraxisnfp
 
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...Srinath Reddy
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessingextraganesh
 
Data collection and input overview
Data collection and input overviewData collection and input overview
Data collection and input overviewsrinivas2036
 
Web Based GIS LeadGen Introduction
Web Based GIS LeadGen IntroductionWeb Based GIS LeadGen Introduction
Web Based GIS LeadGen IntroductionInteractiveGIS
 
INPUT AND OUTPUT DATA IN GIS.pdf
INPUT AND OUTPUT DATA IN GIS.pdfINPUT AND OUTPUT DATA IN GIS.pdf
INPUT AND OUTPUT DATA IN GIS.pdfSURESH833583
 
PowerBI importance of power bi in data analytics field
PowerBI importance of power bi in data analytics fieldPowerBI importance of power bi in data analytics field
PowerBI importance of power bi in data analytics fieldshubham299785
 
NTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
NTEN Webinar - Data Cleaning and Visualization Tools for NonprofitsNTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
NTEN Webinar - Data Cleaning and Visualization Tools for NonprofitsAzavea
 
Getting started with Tableau
Getting started with TableauGetting started with Tableau
Getting started with TableauParth Acharya
 
Data Visualization & Analytics.pptx
Data Visualization & Analytics.pptxData Visualization & Analytics.pptx
Data Visualization & Analytics.pptxhiralpatel3085
 

Similar to Hyperlocal Election Mapping Made Easy (20)

HFM Extended Analytics
HFM Extended AnalyticsHFM Extended Analytics
HFM Extended Analytics
 
DataPreprocessing.ppt
DataPreprocessing.pptDataPreprocessing.ppt
DataPreprocessing.ppt
 
Android mobile based Field Data Collection
Android mobile based Field Data CollectionAndroid mobile based Field Data Collection
Android mobile based Field Data Collection
 
QGIS Tutorial 1
QGIS Tutorial 1QGIS Tutorial 1
QGIS Tutorial 1
 
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
 
Au 2007 It’S Not Cad To Gis Final
Au 2007   It’S Not Cad To Gis FinalAu 2007   It’S Not Cad To Gis Final
Au 2007 It’S Not Cad To Gis Final
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
 
Data collection and input overview
Data collection and input overviewData collection and input overview
Data collection and input overview
 
Web Based GIS LeadGen Introduction
Web Based GIS LeadGen IntroductionWeb Based GIS LeadGen Introduction
Web Based GIS LeadGen Introduction
 
INPUT AND OUTPUT DATA IN GIS.pdf
INPUT AND OUTPUT DATA IN GIS.pdfINPUT AND OUTPUT DATA IN GIS.pdf
INPUT AND OUTPUT DATA IN GIS.pdf
 
102523_CCC TUG.pptx
102523_CCC TUG.pptx102523_CCC TUG.pptx
102523_CCC TUG.pptx
 
PowerBI importance of power bi in data analytics field
PowerBI importance of power bi in data analytics fieldPowerBI importance of power bi in data analytics field
PowerBI importance of power bi in data analytics field
 
Preprocessing_new.ppt
Preprocessing_new.pptPreprocessing_new.ppt
Preprocessing_new.ppt
 
Unit III.pptx
Unit III.pptxUnit III.pptx
Unit III.pptx
 
NTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
NTEN Webinar - Data Cleaning and Visualization Tools for NonprofitsNTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
NTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
 
Getting started with Tableau
Getting started with TableauGetting started with Tableau
Getting started with Tableau
 
project
projectproject
project
 
project
projectproject
project
 
Data Visualization & Analytics.pptx
Data Visualization & Analytics.pptxData Visualization & Analytics.pptx
Data Visualization & Analytics.pptx
 
Rpsonmongodb
RpsonmongodbRpsonmongodb
Rpsonmongodb
 

Recently uploaded

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 

Recently uploaded (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

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