{"id":511692,"date":"2022-05-23T17:19:09","date_gmt":"2022-05-24T00:19:09","guid":{"rendered":"https:\/\/www.esri.com\/about\/newsroom\/?post_type=arcuser&#038;p=511692"},"modified":"2022-05-23T17:19:09","modified_gmt":"2022-05-24T00:19:09","slug":"five-ways-arcade-enhances-maps-using-american-community-survey-data","status":"publish","type":"arcuser","link":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data","title":{"rendered":"Five Ways Arcade Enhances Maps Using American Community Survey Data"},"author":1031,"featured_media":0,"menu_order":0,"template":"","format":"standard","meta":{"_acf_changed":false,"sync_status":"","episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","castos_file_data":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","_links_to":"","_links_to_target":""},"categories":[10532,195922,25022],"tags":[472461,178472,320072],"arcuser_issues":[479252],"class_list":["post-511692","arcuser","type-arcuser","status-publish","format-standard","hentry","category-arcgis-arcade","category-esri-demographics","category-hands-on","tag-arcuser","tag-best-practices","tag-census-data","arcuser_issues-spring-2022"],"acf":{"short_description":"Use ArcGIS Arcade to get more value from data and enhance the information in map.","pdf":{"host_remotely":false,"file":511702,"file_url":""},"flexible_content":[{"acf_fc_layout":"blockquote","content":"Often you find that the layers you own\u2014and especially layers you don\u2019t own\u2014don\u2019t meet all your mapping needs. You may want to calculate new values for fields, spruce up your pop-ups with data from additional layers, or summarize your data based on geometry. You could copy datasets and join them to produce a third dataset that you would then have to manage. Instead, you could use ArcGIS Arcade, which allows you to calculate new data values on the fly."},{"acf_fc_layout":"content","content":"<h2>What Exactly Is Arcade?<\/h2>\r\nArcade is a portable, lightweight, and secure expression language written for use in the ArcGIS system. Like other expression languages, it can be used to perform mathematical calculations, manipulate text, and evaluate logical statements. It also supports multistatement expressions, variables, and flow control statements. Arcade was designed specifically for creating custom visualizations and labeling expressions in the ArcGIS system. It allows users to write, share, and execute custom expressions in ArcGIS Pro, ArcGIS Runtime, ArcGIS Online, and the ArcGIS API for JavaScript.\r\n\r\nArcade allows you to access feature geometry, store constants and variables, and provide access to attribute values. You can use the broad functionality in Arcade to calculate new data-driven values.\r\n\r\nFor example:\r\n<ul>\r\n \t<li>Make basic calculations, such as calculating a percent.<\/li>\r\n \t<li>Use functions, such as ABSOLUTE VALUE, ROUND, and logical statements.<\/li>\r\n \t<li>Create an index or ratio.<\/li>\r\n \t<li>Manipulate text or resize symbols based on map scale.<\/li>\r\n \t<li>Use geometry-based functions.<\/li>\r\n \t<li>Perform data cleanup such as fixing fields that contain incorrect values or typos.<\/li>\r\n<\/ul>\r\nIf you\u2019re brand new to Arcade, read \u201c<a href=\"https:\/\/bit.ly\/370S3XD\">Your Arcade Questions Answered<\/a>\u201d to learn more.\r\n<h2>Using Census Data from ArcGIS Living Atlas and Arcade<\/h2>\r\nArcGIS Living Atlas of the World contains US Census Bureau American Community Survey (ACS) layers that are quick and easy to use when mapping demographic topics in the US. Combining Arcade and ACS layers can save time and enhance your maps.\r\n\r\nThe ASC provides a lot of interesting data points from social, economic, housing, and demographic characteristics about the US population every year. This data can be used to make important public and business decisions that clearly identify issues and opportunities and help more effectively allocate resources.\r\n\r\nArcGIS Living Atlas of the World contains layers of the most current ACS five-year estimates that are curated, free to use, and ready to go. The layers are updated annually to reflect the most current data values and geographical boundaries. Layers contain data for state, county, and census tract geographies. Each layer contains single or multiple ACS tables, grouped by topic, and each topic is available as boundaries and centroids. Many layers include precalculated fields such as sums and percentages. Coastlines and water features are clipped to meet cartographic needs. Field aliases and long descriptions bring metadata directly into the user experience.\r\n<h2>1. Construct New Values to Map<\/h2>\r\nA lot of valuable fields are given in ACS data, but often you may want to combine fields and construct new values to map. For instance, if you want to map the percentage of households with income below $50,000, you can use the ACS Household Income Distribution Variables layer in ArcGIS Living Atlas of the World and Arcade to calculate this attribute on the fly.\r\n\r\nACS offers the count of households within different income ranges such as $0 to $14,999 and $15,000 to $20,000. But if you want to combine those fields to identify households with incomes less than $50,000, Arcade allows you to combine the different attributes and normalize them into a percentage as shown in Listing 1.\r\n<h2><\/h2>"},{"acf_fc_layout":"image","image":511782,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":511812,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2>2. Spruce Up Your Pop-ups<\/h2>\r\nArcade allows you to quickly add new information to your pop-ups, such new calculated fields, as well as writing conditional statements to provide information about your data. From the field calculations shown in Listing 1, you can simply copy and paste the Arcade expression as a new expression in the pop-up panel and re-create the percentage of households whose income was below $50,000. In addition, Arcade allows you to bring in information from another layer, using FeatureSets, without having to run any join functions.\r\n<h2>3. Writing Conditional Statements<\/h2>\r\nWriting logic methods is useful for checking for empty values and writing conditional statements such as if\/else logic and implementing switch-case statements. All ACS layers in ArcGIS Living Atlas of the World contain margins of error fields that are displayed in pop-ups. You can write logical statements in Arcade to determine whether a given census geography has reliable estimates for any given attribute by using the associated margin of error such shown in the Arcade statements in Listing 2. For an in-depth explanation on using Arcade to write statements for margins of error, read \u201c<a href=\"https:\/\/bit.ly\/35lQeUR\">Effective ways to communicate margins of error through pop-ups<\/a>.\u201d\r\n\r\n&nbsp;"},{"acf_fc_layout":"image","image":511792,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":511822,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2>4. Use Data from Other Layers<\/h2>\r\nOften, you\u2019ll want to add additional information into a pop-up that resides in another layer. You could join the layers of interest together, but that requires additional time, credits, and some additional work. That\u2019s where Arcade\u2019s FeatureSets capability comes in.\r\n\r\nFeatureSets are Arcade data functions you can use with feature layers. With FeatureSets, you can work with multiple features in a layer when authoring a pop-up or calculating fields. For a detailed explanation of FeatureSets, read \u201c<a href=\"https:\/\/bit.ly\/3II0ips\">What\u2019s new with Arcade: Taking a stroll through FeatureSets (Part 1<\/a>).\u201d\r\n\r\nListing 3 uses FeatureSets to bring data from one ACS layer into another. Specifically, bringing data from the ACS Housing Units by Year Built Variables layer into the ACS Housing Costs Variables layer to bring in context about the median age of housing to households by income map. It uses the FIPS\/GEOID field to find the matching record from the similar layer. This is an attribute-driven approach that is a lot like a join, which combines two tables based on a corresponding value. The FeatureSetByPortalItem() function allows you to pull data from another layer into a pop-up without adding the layer to your map. When retrieving data from a layer within your web map, use the FeatureSet function and access data with $map. When retrieving data from a layer that isn\u2019t in your web map, use FeatureSetbyPortalItem function.\r\n\r\n&nbsp;"},{"acf_fc_layout":"image","image":511832,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":511802,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2>5. Using Geometry Functions to Provide Spatial Context<\/h2>\r\nWhile all the uses of Arcade described so far are awesome, when is the spatial in geospatial with using Arcade? Fear not, Arcade allows you to use geometry functions such as Spatial Union, Intersection, Clip, Buffer, Overlaps, and more of your favorite spatial relationships.\r\n\r\nFor a more detailed description of geometry functions using Arcade, read \u201c<a href=\"https:\/\/bit.ly\/36Q2WLE\">Use Arcade geometry functions with FeatureSets to provide spatial context.<\/a>\u201d\u00a0 For instance, you might want to aggregate areas based on an area of interest, such as a buffer. When dealing with margins of errors in ACS, you might want to aggregate surrounding census tracts to get values that are more reliable.\r\n\r\n&nbsp;"},{"acf_fc_layout":"image","image":511842,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":511852,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":511862,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":511872,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2>Use Arcade to Enhance Any ArcGIS Map or App<\/h2>\r\nThese are just some of the many ways that you can use Arcade to elevate ACS layers or any feature layer: calculating a new field to map an attribute of interest by sprucing up pop-ups with newly calculated fields and conditional statements or bringing in additional layers and displaying spatial relationships. Arcade makes working with ArcGIS Online, ArcGIS Pro, ArcGIS Dashboards, and web applications easier than ever."}],"references":null},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Use Arcade to do more with census data<\/title>\n<meta name=\"description\" content=\"ArcGIS Arcade allows you to calculate new data values from American Community Survey (ACS) layers the on the fly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Five Ways Arcade Enhances Maps Using American Community Survey Data\" \/>\n<meta property=\"og:description\" content=\"ArcGIS Arcade allows you to calculate new data values from American Community Survey (ACS) layers the on the fly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data\" \/>\n<meta property=\"og:site_name\" content=\"Esri\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2022\/05\/arcade_banner.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@Esri\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\/\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data\",\n\t            \"url\": \"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data\",\n\t            \"name\": \"Use Arcade to do more with census data\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/#website\"\n\t            },\n\t            \"datePublished\": \"2022-05-24T00:19:09+00:00\",\n\t            \"description\": \"ArcGIS Arcade allows you to calculate new data values from American Community Survey (ACS) layers the on the fly.\",\n\t            \"breadcrumb\": {\n\t                \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data#breadcrumb\"\n\t            },\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"BreadcrumbList\",\n\t            \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data#breadcrumb\",\n\t            \"itemListElement\": [\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 1,\n\t                    \"name\": \"Home\",\n\t                    \"item\": \"https:\/\/www.esri.com\/about\/newsroom\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 2,\n\t                    \"name\": \"Five Ways Arcade Enhances Maps Using American Community Survey Data\"\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/#website\",\n\t            \"url\": \"https:\/\/www.esri.com\/about\/newsroom\/\",\n\t            \"name\": \"Esri\",\n\t            \"description\": \"Esri Newsroom\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\/\/www.esri.com\/about\/newsroom\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/#\/schema\/person\/82e5143bcdebadf8fd64d84e503ca468\",\n\t            \"name\": \"Monica Pratt\",\n\t            \"image\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/#\/schema\/person\/image\/\",\n\t                \"url\": \"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2018\/08\/MonicaMug_agol2.jpg\",\n\t                \"contentUrl\": \"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2018\/08\/MonicaMug_agol2.jpg\",\n\t                \"caption\": \"Monica Pratt\"\n\t            },\n\t            \"description\": \"Monica Pratt is the founding and current editor of ArcUser magazine, the executive editor of ArcNews magazine, the editor of Esri Globe and head of the Publications team at Esri. She has been writing on technology topics, specializing in GIS, for more than 30 years. Before joining Esri in 1997, she worked for newspapers and in the financial industry.\",\n\t            \"sameAs\": [\n\t                \"https:\/\/x.com\/ArcUser\"\n\t            ],\n\t            \"url\": \"\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Use Arcade to do more with census data","description":"ArcGIS Arcade allows you to calculate new data values from American Community Survey (ACS) layers the on the fly.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data","og_locale":"en_US","og_type":"article","og_title":"Five Ways Arcade Enhances Maps Using American Community Survey Data","og_description":"ArcGIS Arcade allows you to calculate new data values from American Community Survey (ACS) layers the on the fly.","og_url":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data","og_site_name":"Esri","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","og_image":[{"url":"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2022\/05\/arcade_banner.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@Esri","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data","url":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data","name":"Use Arcade to do more with census data","isPartOf":{"@id":"https:\/\/www.esri.com\/about\/newsroom\/#website"},"datePublished":"2022-05-24T00:19:09+00:00","description":"ArcGIS Arcade allows you to calculate new data values from American Community Survey (ACS) layers the on the fly.","breadcrumb":{"@id":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/five-ways-arcade-enhances-maps-using-american-community-survey-data#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/about\/newsroom"},{"@type":"ListItem","position":2,"name":"Five Ways Arcade Enhances Maps Using American Community Survey Data"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/about\/newsroom\/#website","url":"https:\/\/www.esri.com\/about\/newsroom\/","name":"Esri","description":"Esri Newsroom","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/about\/newsroom\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.esri.com\/about\/newsroom\/#\/schema\/person\/82e5143bcdebadf8fd64d84e503ca468","name":"Monica Pratt","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/about\/newsroom\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2018\/08\/MonicaMug_agol2.jpg","contentUrl":"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2018\/08\/MonicaMug_agol2.jpg","caption":"Monica Pratt"},"description":"Monica Pratt is the founding and current editor of ArcUser magazine, the executive editor of ArcNews magazine, the editor of Esri Globe and head of the Publications team at Esri. She has been writing on technology topics, specializing in GIS, for more than 30 years. Before joining Esri in 1997, she worked for newspapers and in the financial industry.","sameAs":["https:\/\/x.com\/ArcUser"],"url":""}]}},"sort_order":"14","_links":{"self":[{"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/arcuser\/511692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/arcuser"}],"about":[{"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/types\/arcuser"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/users\/1031"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/arcuser\/511692\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/media?parent=511692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/categories?post=511692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/tags?post=511692"},{"taxonomy":"arcuser_issues","embeddable":true,"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/arcuser_issues?post=511692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}