Edit a categorical attribute
Rename a categorical attribute, change its type, sort or hide its categories, and pick their colors.
Last reviewed: November 2020
A categorical attribute is one whose values Tuva treats as names of groups (categories), such as a species or a state (see attribute). The values are usually words, but numbers such as ZIP codes can be categories too. You change its name, type, category order, which categories show and their colors in the Attribute Settings Card. Basic and Premium teachers can both do this.
The examples below use a dataset with Name, Species and Height attributes, with Species on the X axis.
Open the Attribute Settings Card
Section titled “Open the Attribute Settings Card”-
Open your dataset in Tuva Tools. In the case card, click the pencil at the right end of the attribute’s row.

-
The Attribute Settings Card opens in place of the case card. It has Name and Description boxes, a Type menu, two Sort buttons, and under Filter Categories a checkbox and a colored dot for each category, with the number of cases in it.

Click the X at the top right of the card to go back to the case card.
Change the name and description
Section titled “Change the name and description”Type a new name in the Name box. When you close the card, the case card and the graph’s axis label show the new name. Use the Description box for a longer note about the attribute.

Change the type
Section titled “Change the type”Click the Type menu and choose a type. A categorical attribute shows Categorical. The menu also lists Categorical: Numerical Intervals, Numerical and numerical formats such as fractions, extracted numbers, dates, times and days of the week.

Group numbers into ranges
Section titled “Group numbers into ranges”Categorical: Numerical Intervals turns a numerical attribute into categories, one for each range of values (bins). Open the numerical attribute’s pencil, choose Categorical: Numerical Intervals under Type, then set Start (where the first range begins) and Width (how wide each range is). With Start 5 and Width 5, the Height values here fall into 5 to 9, 15 to 19, 20 to 24 and 30 to 34. Each range includes both of its numbers, so 5 to 9 holds 5 through 9, and a 10 would go in 10 to 14. A range with no cases, such as 10 to 14 here, is left out. Change Width to 10 and they regroup into 5 to 14, 15 to 24 and 25 to 34. Each range gets a checkbox and a color like any other category.

Sort the categories
Section titled “Sort the categories”Under Sort, click the left button to list the categories from A to Z, or the right button for Z to A. The categories on the axis and in the list change order.

Show or hide categories
Section titled “Show or hide categories”Under Filter Categories, uncheck a category to take its cases off the graph. A filter icon at the top right of the graph shows a minus sign and the number of hidden cases (here, -2 means two cases are hidden). Check the box again to bring them back. Clear unchecks every category, and Select all checks them all again.

Change a category’s color
Section titled “Change a category’s color”Each category has its own color. To see those colors on the graph’s points, put the attribute on Color By first. The Attribute Settings Card sits where the case card was, so you switch between the two.
- Click the X at the top right of the Attribute Settings Card to go back to the case card.
- Drag the attribute from the case card to the Color By area on the right of the graph. The points take the category colors, and a key appears on the right.
- Click the attribute’s pencil in the case card to open the Attribute Settings Card again.
- Under Filter Categories, click the colored dot to the left of the category’s name.
- Click a color in the picker, or pick one from the color area or type a hex code. The dot, the points and the key all change to the new color.

Keep your changes
Section titled “Keep your changes”Tuva keeps these changes only if you save a plot. If you close or reload the page first, the attribute goes back to how it was. Saving a plot does not change the dataset you started from.
- Click Save Plot at the bottom of the screen.
- Type a Plot Title and click Save as New.
The saved plot keeps the new name, the category order and the colors when you open it again.
Related pages
Section titled “Related pages”Was this page helpful?
This opens the ticket form with your comment and a link to this page, so we can reply to you.
Submit a ticket