CÓMO

Ordenar la categoría de gráficos de serie de ArcGIS Dashboards por orden personalizado

Last Published: November 23, 2023

Resumen

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.

Procedimiento

  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. de artículo: 000024903

Recibir notificaciones y encontrar soluciones a problemas nuevos o comunes

Obtenga respuestas resumidas y soluciones de vídeo de nuestro nuevo chatbot de IA.

Descargar la aplicación de soporte de Esri

Información relacionada

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga