1. Home
  2. Docs
  3. GLayer
  4. Fields
  5. OrdinalField

OrdinalField

Type of field representing a categorical value that can be naturally ordered. Each value typically represents a bin that we want to handle in the visualisation further.

Example Usage
For example, if we have weekdays stored in one of our table columns, we will connect them to OrdinalField. To attach data that evaluates the road quality on a scale from 1 to 5, use the same principle.
To set up OrdinalField for weekdays, which can be separated from the time stamp, follow these steps:

  1. In the Fields tab, in Project Settings, click on the button, select OrdinalField from the dropdown menu and fill in the ID, e.g., weekday.
  2. The column subtype is Day.
  3. In the next step, it is needed to specify our column name in the row called Source name. In this case, the column is named time_stamp.
  4. The final step is to click on the green checkmark button to save the settings.


To separate the data from the time stamp by months or years, use the same procedure; the only difference is to select the proper Column subtype from the dropdown menu.


The next example is about setting up OrdinalField for data that evaluates the quality of roads on a scale from 1 to 5. Follow these steps:

  1. In the Fields tab in the Project Settings, click on the button, select OrdinalField from the dropdown menu and fill in the ID, e.g., road_quality.
  2. Column subtype is Int.
  3. In the next step, it is necessary to specify our column name in the row called Source name. In this case, the column is named quality.
  4. To set up a Domain in the Source Table, a number defining the road quality from 1 to 5 is needed. Add 5 rows by pressing the Add button. Afterward, fill in the rows with numbers 1 – 5.
  5. The final step is to click on the green checkmark button to save the settings.

Was this article helpful to you? Yes No

How can we help?