Data is most valuable when it is visualized. MongoDB Charts solves this problem beautifully. It is the best way to build dashboards natively in Atlas.
Charts is a built-in visualization tool. It reads directly from your MongoDB collections. It handles nested JSON structures automatically.
You do not need to write code to create a chart. It provides a sleek drag-and-drop web interface. Just select your fields to render instant graphs.
Charts connects to your live operational data. Your dashboards update as data flows into the database. There is no need for slow ETL extraction pipelines.
Once a chart is built, you can share it. Atlas provides an Embedding SDK for the web. You can embed graphs directly into your HTML applications.
import ChartsEmbedSDK from '@mongodb-js/charts-embed-dom';const sdk = new ChartsEmbedSDK({ baseUrl: 'https://charts.mongodb.com/charts-app-id' });
const chart = sdk.createChart({ chartId: 'chart-uuid-here' });
// Render the live chart inside an HTML div chart.render(document.getElementById('chart-container'));
MongoDB Charts supports numerous visual types. You can build bar charts, line graphs, and pie charts. It also supports geospatial map plots for location data.
Embedded charts are highly secure. You can pass runtime filters in your code. This ensures a user only sees their own respective data.
MongoDB Charts is a powerful, code-free analytics tool. It connects directly to live BSON data streams. You can embed interactive visualizations safely into any website.
Do you need to export your data to a SQL database before using MongoDB Charts?