Lesson 29 +10 XP

Atlas Charts

Atlas Charts

MongoDB Charts is Atlas's built-in data visualization tool. You can build charts and dashboards from your collections with a drag-and-drop interface - no query code required.

Getting started

  1. In your Atlas dashboard, open the Charts tab.
  2. Click Activate Now (takes about a minute).
  3. Open the dashboard and click Add Chart.

Build a chart

  1. Under Data Source, select a collection (for example, the Movies collection in sample_mflix).
  2. Drag a field to an axis.
  3. Configure the Bin Size and Aggregate (like COUNT).

For example, to chart movies per year:

  • Drag Year to the Y Axis, set Bin Size to 1.
  • Drag _id to the X Axis, set Aggregate to COUNT.

Result: a bar chart of how many movies were released each year.

Why Charts?

  • Build dashboards and analytics without writing aggregation code.
  • Runs the queries against your data for you.
  • Great for sharing visual insights with your team.

Key facts

  • Charts is part of MongoDB Atlas (cloud), not the open-source server.
  • Uses field dragging and aggregations (like COUNT) rather than hand-written pipelines.

TL;DR

  • Atlas Charts = drag-and-drop data visualization.
  • Pick a collection, drag fields to axes, set aggregates.
  • Build dashboards without writing queries.