In this topic, you’ll learn how to configure the Election Results solution to meet specific needs in your organization.
Understand the Election Results feature layers
The Election Results solution includes the ElectionResults feature layer used to store your tabulated election results data. The ElectionResults feature layer has two sublayers, Voting Jurisdictions, and the Election Results table. Voting Jurisdictions stores the geographic jurisdiction you’re using to visualize election results on a map (for example, County, Municipality, or Precinct). The Election Results table stores the results of ballot measures where each record represents the results of a ballot measure by contest, candidate, and jurisdiction. Each record in the Election Results table is also categorized as an Elected Office or Proposal using the Contest Category field.
In the below example, two candidates ran for mayor in a community with three precincts.
Contest | Contest Category | Jurisdiction Name | Candidate | Party | Number of Votes | Percent Vote |
---|---|---|---|---|---|---|
Mayor | Elected Office | Precinct 1 | John Doe | Democratic | 306 | 51 |
Mayor | Elected Office | Precinct 2 | John Doe | Democratic | 147 | 39 |
Mayor | Elected Office | Precinct 3 | John Doe | Democratic | 350 | 51 |
Mayor | Elected Office | Precinct 1 | Jane Smith | Republican | 245 | 49 |
Mayor | Elected Office | Precinct 2 | Jane Smith | Republican | 153 | 51 |
Mayor | Elected Office | Precinct 3 | Jane Smith | Republican | 294 | 49 |
You can use the Election Results table to store the results of ballot measure proposals. Yes and No are populated in the Candidate field. In the below example, Proposal 1 was voted on in a community with three precincts.
Contest | Contest Category | Jurisdiction Name | Candidate | Party | Number of Votes | Percent Vote |
---|---|---|---|---|---|---|
Proposal 1 | Proposal | Precinct 1 | Yes | 306 | 51 | |
Proposal 1 | Proposal | Precinct 2 | Yes | 147 | 39 | |
Proposal 1 | Proposal | Precinct 3 | Yes | 350 | 51 | |
Proposal 1 | Proposal | Precinct 1 | No | 245 | 49 | |
Proposal 1 | Proposal | Precinct 2 | No | 153 | 51 | |
Proposal 1 | Proposal | Precinct 3 | No | 294 | 49 |
Load election results
You may need to load election results data from a spreadsheet sourced from your tabulation system. The Election Results solution includes a .csv file that you can use to load data into the ElectionResults feature layer. Populate the ElectionResults.csv fields with your election results data, and complete the steps below to load your election results data:
- Sign in to your ArcGIS organization and browse to the ElectionResults.csv item.
- Open the item page and click Download.
- Edit the .csv file and provide your election results data.
- In your ArcGIS organization, browse to the ElectionResults feature layer.
- Open the item page and click Update Data > Append Data to layer.
- Click Choose Fire, browse to your .csv file, and click OK.
- Click Upload and Continue.
- Click the Choose the layer to update drop-down arrow and choose Election Results.
- Uncheck Update existing features.
- Click Show field matching to map the fields.
- Click Apply Updates.
Extend election results
The Election Results solution also includes two feature layer views created from the ElectionResults feature layer: ElectionResults_join and ElectionResults_dashboard. These feature layer views are used in the Election Results dashboard. Your organization may want to modify the ElectionResults feature layer fields to include additional information. When doing so, the new fields must be exposed in the appropriate views. Additionally, some views are created by joining two sources together, and you must re-create these views with the same name and URL after a new field is added.
Update feature layer view
Review the ElectionResults feature layer and identify additional fields your organization may want to add to the Election Results app.
- Verify that you are signed in to your ArcGIS organization and search for the ElectionResults feature layer.
- Add a new field to a layer in the ElectionResults feature layer.
- Browse to the ElectionResults_dashboard view in your contents.
- Open the item page and click the Visualization tab.
- Click More Options on the appropriate layer or table, and click Set View Definition > Define Fields.
- Check the box next to the new field or fields.
- Click Apply.
The new field is added to the view’s definition.
Share historical results
You can deploy the Election Results solution multiple times to share results for multiple election cycles. You can configure each Election Results dashboard to share the results of an election. You can then share the Election Results dashboards with the Minimal Gallery app and embed them in your website.
Create your Historical Election Results group
To create the Historical Election Results group, complete the following steps:
- Verify that you are signed in to your ArcGIS organization.
- Create the following group in your ArcGIS organization:
Parameter Value Summary
Type A collection of historical election results apps hosted by your organization.
Description
Type A collection of historical election results apps hosted by your organization. The public can use this gallery of apps to access specific information on past elections.
Tags
Historical Election Results, Primary Election Results, General Election Results.
Who can view this group
Choose Everyone (public).
Who can join this group
Choose Only those invited by a group manager.
Who can contribute content to the group
Choose Group members.
Sort group content by
Choose Title and Ascending.
Create your Historical Election Results Gallery app
The Historical Election Results Gallery app is a configuration of the Minimal Gallery configurable application template. The app consumes the Election Results solution dashboards that you have authored and shared in the Historical Election Results group. This app can be hosted in your ArcGIS organization or downloaded and hosted on your local web server.
To create a historical Election Results gallery app, complete the following steps:
- Verify that you are signed in to your ArcGIS organization and browse to the Historical Election Results group.
- On the group page, click Create a web app and click the Minimal Gallery configurable application template.
- Click Create web app and specify a title, tags, and a summary.
- Click Done.
- Configure the app and save your edits, and click Close.
- Edit the item details.
- Click Share and share the app with Everyone (public).
- Embed the Historical Election Results Gallery app in your election website.