Instrução

Classifique a categoria do gráfico serial do ArcGIS Dashboards por uma ordem personalizada

Last Published: November 23, 2023

Resumo

ArcGIS Dashboards allows sorting data categories in a serial chart using the Sort By function. However, this function limits sorting categories alphabetically or numerically, in ascending or descending order. The image below shows the serial chart categories with the default ascending order. The categories are sorted alphabetically, based on the initial letter in each category.

The image of the serial chart before the category is sorted.

This article provides a workaround to sort categories in the serial chart by custom order. The serial chart categories are sorted by the sequence of days in a week.

Procedimento

  1. In ArcGIS Online, open the item details page of the hosted feature layer used in the ArcGIS Dashboards serial chart. Refer to ArcGIS Online: Item details for more information.
  2. Add a new integer field to the feature layer attribute table, and fill in the new field with numbers corresponding to the sequence of data in the serial chart. The image below shows the new field (Sequence) is filled with numbers corresponding to the sequence of days (Day field).
The image of the new field with the desired sequence corresponding to the days' field.
  1. On the ArcGIS Online content page, click to open the dashboard containing the updated feature layer to create the serial chart.
Note:
If the dashboard is not created beforehand, refer to ArcGIS Dashboards: Create a dashboard to create a new dashboard in ArcGIS Dashboards.
  1. On the dashboard page, click the plus icon The image of the plus sign. on the header, and select Serial Chart. Select the layer containing the data to display on the chart.
  2. On the Data tab, for Category Field, select the new field containing the numeric sequence. For Sort by, select Ascending or Descending.
  3. On the Category Axis tab, under Labels, click Load Categories. In the Label column, type the labels according to the numeric sequence. In this example, category 1 is labeled as Monday, and category 7 is labeled as Sunday according to the sequence of days in a week.
The image of the Category Axis tab.
  1. Configure other settings of the serial chart as required, and click Done.

The image below shows the serial chart with categories sorted in a custom order.

The image of serial chart categories sorted in a custom order.

ID do Artigo: 000024903

Receba notificações e encontre soluções para problemas novos ou comuns

Obtenha respostas resumidas e soluções de vídeo do nosso novo chatbot de IA.

Baixe o Aplicativo de Suporte da Esri

Informações Relacionadas

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download