操作方法

在 ArcGIS Business Analyst Web App 中,如何在彩色编码的地图中显示自定义变量的总体百分比?

Last Published: August 15, 2024

摘要

Creating a custom variable for adult smartphone owners in ArcGIS Business Analyst Web App displays the percentage of the adult smartphone users for each individual U.S. state in a color-coded map. The example image below shows there are 27, 248, 090 adult smartphone owners in California, which constitutes 89.07% of California's adult population in 2020.

Image showing the percentage of adult smartphone owners in California.

In some instances, users must display the overall percentage by state. For example, the total U.S. adult smartphone owners in 2020 is 227,016,799. Therefore, the overall percentage of U.S. adult smartphone owners living in California is 27248090/227016799*100 percent=12 percent. 

过程

Follow the workaround below to create a custom variable to display the overall percentage of adult smartphone owners living in the U.S. by state.

  1. In ArcGIS Business Analyst Web App, open the color-coded map, and click + Add variable.

Image showing the + Add variable option in the color-coded map in the ArcGIS Business Analyst Web App.

  1. On the bottom-right of the Data Browser window, click Show All.

Image showing the Show All option in the Data Browser window.

  1. On the bottom-left of the Data Browser window, click Create a custom variable.
  1. In the Create Custom Variable dialog box, click the Advanced custom variable tab.
  1. Type smartphone in the search box, and click the Search Image showing the search box. icon.
  1. Build the expression for the custom variable to calculate the overall U.S. adult smartphone owners by state. In this example, the following expression divides the total adult smartphone owners in each state by the total U.S. adult smartphone owners and multiplies it by 100.
2020 Have a smartphone/227016799*100
The 2020 Have a smartphone variable contains the number of adult smartphone owners for each U.S. state in 2020.
Note:
Ensure the number button Image showing the number button is selected for the 2020 Have a smartphone variable under Assemble your custom variable. for the expression of the expression to work.
  1. Check the 2020 Have a smartphone check box, and click Add Selected Variables to add the 2020 Have a smartphone variable to the custom variable.
  2. Click the Divide operator Image showing the Divide operator..
  3. Click the Add Number button Image showing the Add Number button., and type 227016799 in the box. 
  4. Click the Multiply operator Image showing the Multiply operator..
  5. Click the Add Number button Image showing the Add Number button., and type 100 in the box.

Image showing the steps to construct the custom expression for the custom variable.

  1. Click Save & Add.
  1. In the Save Custom Variable dialog box, name the custom variable, and set the number of decimal places.

Image showing the Save Custom Variable dialog box.

  1. Click Save.

The color-coded map below shows 12 percent of U.S. adult smartphone owners live in California.

Image showing the overall percentage of U.S. adult smartphone owners is displayed.

文章 ID: 000014526

获得人工智能支持

使用 Esri Support AI Chatbot 快速解决您的问题。

立即开始聊天

相关信息

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

立即开始聊天

转至下载选项