How to Customize Tables You Can Format and Align at Will in Displayr
Often we want to customize the look of tables. Perhaps you need to show the counts below the bars of a visualization. Perhaps you need a table to conform to brand guidelines. Whatever it is, you can easily align and format a reference table in Displayr.
There are a few different ways to create basic tables in Displayr. By using our new Autofit option (which you can find in the Object Inspector of the Insert > Enter Table feature), you can customize nearly all aspects of formatting, such as fonts, borders, colors, spacing, and alignment.
Making a custom format table
The below assumes you have a table already made. From here, you will hook it up to an object that becomes a new table that you can format.
- Click Insert > Enter Table. This creates a new empty object on the screen.
- With the new empty object selected, in the Object Inspector to the right, under Inputs > DATA SOURCE, specify the original (unformatted) table
- Check Inputs > OUTPUT > Autofit (as per the picture above)
- Use the Format tab to customize the options
Aligning a table to a visualization
A common situation is that you want to resize your table so the columns align with a visualization. So rather than having the original table underneath, you can use the formatted table to align underneath.
In the example above, I removed the x-axis labels by unchecking the box at Format > COLUMN HEADER > Show column headers. I also manually set the column widths under Format > COLUMN HEADER > Column widths.