Visualizing Data in ArcGIS Online

Introduction to GIS Vector Data

There are three basic types of vector data: points, lines, and polygons. See the figure below for an example of each of the types.

agol_image0

Getting Started

Note: This tutorial uses arrest data downloaded from Los Angeles Open Data portal filtered for the year of 2017 only (see: `Quick Visual Guide to Visualizing Data on LA Open Data Portal <https://drive.google.com/file/d/140rq7sU548VdtYMkiQ8SLIMDLl7smoJE/view?usp=sharing>`__)

You can download the data here:

https://sandbox.idre.ucla.edu/data/Arrest_Data_from_January_2017.csv

  1. Create your ArcGIS Online Public Account (https://www.arcgis.com/home/createaccount.html)

agol_image1

agol_image2

  1. Once your account has been successfully created, click on ‘Map’ to start your first map!
agol_image3

Working with Point Data

There are multiple ways to add data in ArcGIS Online. Let’s start with adding data in Map View.

Adding Point Data (Less than 2,000 records*) in Map View

  1. Click on the ‘Add Content to Map’ icon in Map View. The first two options from the drop down menu allow you to search for already shared data on ArcGIS Online or the Living Atlas. While the last three options allow you to add your own data. Click on ‘Add Layer from File”.

agol_image4

  1. Find your CSV file with the arrest data from the LA County Data Portal. Make sure you have the location data cleaned up!
    1. *Note: If you data has not been cleaned up yet see: Cleaning Data in Microsoft Excel
    2. Note: The maximum number of records for adding data via this method 2,000. If you attempt to use your arrest data from the LA City Portal then ArcGIS Online will return the following error message:
agol_image5
  1. A workaround for this size limitation is publishing your csv file on Github and linking the data back to your map.
    1. Note: If you pay for an ArcGIS Online account you can also publish a feature service from one of the two desktop software options: ArcMap or ArcGIS Pro. These options have higher maximum records for publishing, however the Github option is a good free workaround.

Big Data Workaround: Github to the Rescue

Free accounts are limited to less than 2,000 records, so we need to find a work around for this. One method is to store your data somewhere online, this is where the coding repository, GitHub comes in handy!

Creating a Github Account

  1. Github is a platform for developers and a place to store, share, and collaborate on coding projects. Create a Github Account here:https://github.com/join
agol_image6
  1. Go ahead and set up a free account
agol_image7
  1. After you click your email activation link, you can create your first repository, give it a name and make sure it is a Public repository:

agol_image8

agol_image9

  1. After creating your repository, click on “uploading an existing file”

    agol_image10

  2. Drag the csv file with the locations into the upload location or click “choose your files” if you want to locate it (reminder: make sure latitude and longitude are separate columns!)

agol_image11
  1. Add a “commit” title and then commit your changes:
agol_image12
  1. Click the csv file:
agol_image13
  1. Click on “View Raw”
agol_image14
  1. Copy the URL
agol_image15
  1. Now, finally go back to ArcGIS Online and click on “Add data from web”
agol_image16
  1. Choose “A CSV file”:
agol_image17
  1. Paste the URL in to “URL”:
agol_image18
  1. Click “Add Layer”
agol_image19
  1. Now we can start to style it!

Geocoding your data

Sometimes you will not have latitude and longitude, what to do then?

We can geocode it!

This tool below takes in copy-pasted CSV files with a “Address” column name, that can be a city, country, or street address:

https://gis.ucla.edu/geocoder

  1. Open up your CSV file in a text editor:
agol_image20
  1. For the UCLA Geocoder, make sure your location column has “ADDRESS” for the field name!!
agol_image21
  1. Select all the data and copy it
agol_image22
  1. Go tohttps://gis.ucla.edu/geocoder
  2. Scroll down to the input box
agol_image23
  1. Paste your data into it and click “Geocode Addresses”
agol_image24
  1. Copy the output to your clipboard
agol_image25

Let’s take that data into GitHub so we can map it!

  1. Open up GitHub and click on your data repository
agol_image26
  1. Click on “create new file”
agol_image27
  1. Paste your CSV data into there.
agol_image28
  1. Commit the changes!
agol_image29
  1. Open the raw CSV file and copy the URL.
  2. Paste the URL into ArcGIS Online “Add Data from Web”

Styling Point Data

  1. There are a variety of ways to style your point data. The best symbology for your data depends on what kind of story you wish to tell. Try each of the different methods listed below to see which fits best for your data.

When you add your data, the style pane should automatically appear, however to access the symbology settings for your layer at any time, go to the ‘Details’ pane and click on ‘Contents’. The Contents pane displays each layer within your map. Click on the ‘Change Style’ icon to open the symbology settings for your arrest data layer.

agol_image30

  1. The Change Style pane consists of a two step process. The first step dictates which attribute to display and the second step controls the drawing style.

Location Only Symbology

  1. For now, let’s stick with the default options:
    1. Show Location Only
    2. Location (Single symbol)

Click on ‘Options’ under Location (Single symbol).

agol_image31

  1. There are three main elements under the Styling options for Showing Location Only:
    1. Symbol: Controls all of the styling options for the chosen point symbol.
    2. Transparency: Controls the transparency of each point.
    3. Visible Range: Drag the two tick marks to control the scale ranges that the selected layer becomes visible.
agol_image32
  1. Click on ‘Symbols’. A new window pops up with more styling options. Click on the ‘Shapes’ drop-down menu and select ‘Basic’.
agol_image33agol_image34
  1. Make the following changes to your symbol:
    1. Chose Basic Circle
    2. Size: 5 px
    3. Fill: Light Blue
    4. Outline: Dark Blue
    5. Overall Transparency: 25%
    6. Visibility Range: Counties to Buildings

Click ‘Ok’.

agol_image35

  1. With so many points, it is difficult to see any spatial patterns within your dataset when symbolizing individual points. Try a different symbology method and switch from ‘Show location only’ to ‘Heat Map’.

    Heat maps represent density and show the range of areas where arrests have low and high density. Notice the difference in your map from the previous symbology and how downtown Los Angeles emerges as a dense area for arrests.

    agol_image36

Attribute Based Symbology

  1. Click ‘Ok’ to return to the original Change Style pane. Now under Step 1, select ‘Age’ for ‘Choose an attribute to show’.

    Scroll down to see the six options for drawing styles by attributes:

    1. Counts and Amounts (Size)
    2. Counts and Amounts (Color)
    3. Heat Map
    4. Location (Single Symbol)
    5. Types (Unique Symbols)
agol_image37
  1. Select ‘Counts and Amounts (Color)’ and Click ‘Options’. Then Click ‘Classify Data’.

    Data classification refers to how you group your data into classes to better visualize patterns across your dataset. There are a variety of methods for data classification. To learn more about the different methods see Esri’s Data Classification Help Page.

agol_image38 agol_image39

  1. Select ‘Natural Breaks’ from the dropdown menu and keep the number
of classes at 4. Then select ‘10’ from the ‘Round classes’ dropdown menu. Notice how the breaks change and how the classification type changes to ‘Manual Breaks’.

agol_image40 agol_image41

  1. Click ‘Ok’. Then click ‘Done’. Then save your map.

Enable Clustering

  1. An additional cartographic feature that’s helpful for viewing dense point data is the clustering feature. To enable this feature browse to your layer in the ‘Contents’ pane and select the ‘Cluster Points’ icon.
agol_image42
  1. Slide the clustering bar to create more or less clusters.
agol_image43
  1. Zoom in and out to see how the clusters adjust as you change scales. Click on a cluster to get a summary.
agol_image44

Working with Polygon Data

Getting Polygon Data

Shapefiles are ESRI files that can be found on the web, typically as a compressed zip file.

Let’s go to the LA Times website and grab a shapefile of Los Angeles Neighborhoods:

http://boundaries.latimes.com/sets/

agol_image45

Adding Polygon Data in Map View

  1. Click ‘Add Content to Map’ and select ‘Add Data from File’
agol_image46
  1. Select “Browse”
agol_image47
  1. Choose the zipped shapefile
agol_image48
  1. Click on “Import Layer” to finish adding the file:
agol_image49
  1. Now we can start to style it!

Styling Polygon Data/Choropleth Map

  1. Just like the point data, the Change Style pane for polygon data (would also be the same for line data) consists of a two step process. The first step dictates which attribute to display and the second step controls the drawing style. Select ‘type’ for your attribute and select ‘Types (unique symbols)’ for drawing style.

agol_image50

  1. Keep the default colors and Click ‘Done’. Select and drag the neighborhoods layer to move it below the arrest layer.
agol_image51
  1. Notice what the arrest data looks like on top of the neighborhood layer. Is your map readable? What needs to be changed to increase the legibility of your map?

Other Map Tools

Table of Contents: Managing your Data

  1. To access the Table of Contents and general map information, click on the ‘Details’ section (This should be the default view for your map).
This section consists of three subsections: About this Map, Show Contents of Map, and Show Map Legend. The About icon displays a quick breakdown of how to build your map. We will return to the next two subsections after we add data to the map. agol_image52
  1. Click ‘Save’. Enter the mandatory Map Title information, Tags, and Description to save your map.

Bookmarks

  1. Bookmarks are a great tool for saving views. Type ‘Venice, CA’ in the search box. Once zoomed to Venice, click ‘Bookmarks’ and select ‘Add Bookmark’ and name bookmark as ‘Venice’.
agol_image53
  1. Test your bookmark by zooming out to another section of the map. Click ‘Bookmarks’ and select your newly created ‘Venice’ bookmark to return to Venice on map.
agol_image54

Changing the Basemap

  1. Click on ‘Basemap Gallery’, browse options and explore the basemap options.
    1. Note: Basemaps are an important cartographic choice for building your map. If you have a lot of information on your map a minimal basemap may be the best choice.
agol_image55
agol_image56
  1. Select the ‘Dark Gray Canvas’ and add to your map. agol_image57

Adding Other Layers

You can also add publicly shared layers.

1. Click on “Search for Layers” ..

agol_image58
  1. Click on “ArcGIS Online”
agol_image59
  1. Type in “Historic Los Angeles”
agol_image60
  1. Pay close attention to the author and source of the map to make sure it is legitimate. David Rumsey is a map librarian who hosts a lot of maps on his website, so this is pretty good!
agol_image61
  1. Click on “Add to Map” to finish adding your new map (you can add it as a basemap if you want the map to sit behind all your other data points).
agol_image62
  1. Now you can use the historical map to provide more context about your data.
agol_image63

Renaming & Copying Layers

  1. To rename layers toggle ‘More Options’ on a layer and select ‘Rename’. Clean up your neighborhoods layer by renaming to “LA County Neighborhoods”.
agol_image64
  1. Sometimes you may want to include different symbologies for the same layer. Toggle ‘More Options’ on the arrest data layer and select ‘Copy’. Rename the new layer ‘Arrest Data Heat Map’. Configure the symbology on this new copy as a heat map.

Configuring Pop-Ups

  1. Disable Clustering on your arrest data layer. Click ‘Ok’.
agol_image65
  1. Click on the ellipses icon for More Options for your arrest data layer and select ‘Configure Pop-Ups’.
agol_image67
  1. Click on a random point in your map to view a pop-up. Notice the (1 of #) notification in the top left corner. This signifies that there are multiple points at the same location. Click on the arrow button to see the pop-up for each point. Remember to use the scroll bar to see all the available information.
agol_image68
  1. Revise the Pop-up Title to read “Arrest Record: {Record_ID}”. Use the ‘Add field name or expression’ icon to select {Report_ID} field. The curly brackets denote a field name, and inclusion in the title means the pop-up will populate with each individual records Report ID. Then Click the ‘Configure Attributes’ Button.
agol_image69
  1. In the Configure Attributes window you can control which attributes are displayed in your pop-up. Make the following changes to your pop-up.
    1. Unclick the ‘Use 1000 Separator’ format fox for Report ID and Reporting District
    2. Uncheck the following fields from display: Time, Address, Cross Street, and any location coordinate fields.
    3. Reorder Arrest Type Code to appear after Descent Code (Select field and use the arrows on the right to reorder). Click ‘Ok’. Then Click ‘Ok’ again.

6. Click on a random point again to see how your pop-up has changed. ..

agol_image72

Adding images to a pop-up

  1. You can add images to a pop-up by scrolling down to “Pop-up ../Media” and clicking “Add”
agol_image73
  1. Select “Image”
  1. You can choose the field which contains the URL for all the images:
agol_image75
  1. Now whenever someone clicks on the pop-up your image will also appear!

Sharing & Publishing Your Map

Saving your map

With your map stylized and ready to go, the time has come to save and share it!

1. Click on the “Save” icon ..

agol_image76

3. Give your map a name and tag and then click “Save Map” ..

agol_image77
  1. To share our saved map, click on the “Share” icon:
agol_image78
  1. Click on “Everyone” to share the map with the public and allow your map to be embedded onto a webpage.
agol_image79
  1. You can either link to the map or embed it:
agol_image80
  1. Embed in website allows you to customize the map further (1), but be sure to copy and paste the embed code (2) into your website when you are done!
agol_image81
  1. Congratulations! You have successfully saved and shared your map!

Optional: Organizing your Finished Maps & Content

If you are creating a lot of maps and content, you may want to start organizing it using metadata.

  1. Toggle ‘More Options’ for one of your layers
agol_image82
  1. A new browser window will open with detailed information for your layer. Review the various components of this page, particularly the title, summary, descriptions, and terms of use. It is important to fill out and organize this section if you are working with multiple maps and layers in order to stay organized.
agol_image83
  1. Update the summary and description to read “Data downloaded from LA City Data Portal (include hyperlink to original source) on [insert date] filtered for the month of December, 2016.” Update the Terms of Use to include the original source and state “Data downloaded for educational and training purposes. To use data see original source:Arrest Data from 2010 to Present. Data Provider: Los Angeles Police Department. Data Owner: LAPD OpenData”
agol_image84