This documentation refers to the MongoDB Charts service in MongoDB Atlas. Read the on-premises documentation to learn how to use the MongoDB Charts on site.

Toggle Data Table Row and Column Totals

By default, data tables include a Column Totals row, which consists of a row of values with sum totals for each column. Optionally, you can enable a Row Totals column, which consists of a column of values containing sum totals for each row.

The following image shows a detail from a data table with row and column totals enabled and added text indicating which is which:

Data table with row and column totals


To toggle the totals on and off:

  1. Navigate to the Customization tab in the Chart Builder.
  2. In the General Customization section, set the Column Totals and Row Totals toggles to the desired settings.

For a complete list of Chart Customization options, see Customize Charts.