When you reorder data table columns and save the chart, MongoDB Charts saves the specified order as part of the chart definition. All Charts users will see the new column order.
If you reorder a Group column in a data table that has pinned columns, the following behaviors apply:
- If the column to the right of the destination is pinned, the reordered column is pinned.
- If the column to the left of the destination is unpinned, the reordered column is unpinned.
To reorder data table columns, click and drag column headers to the desired order.
Data table authors and owners can also reorder columns by modifying the order of the respective column encoding channels. MongoDB Charts renders data table columns in the same order you specify the column encoding channels. To modify the order of the encoding channels, drag and drop one field on top of another to swap their order.
- You can only reorder columns within their respective table sections, being Groups or Values.
- You cannot reorder Dynamic Columns.