Run a SQL query against PostgreSQL, MySQL, SQL Server, SQLite or another connected SQL database, or a MongoDB query or aggregation pipeline, then click Create Chart. Pick from 20+ chart types, let Auto Detect map your columns to the axes, and watch the preview update as you change settings.
Basic charts (bar, line, area, pie, donut, scatter, bubble), analytics charts (funnel, gauge, heatmap, treemap, sunburst, Sankey, radar), time-series charts (timeline, candlestick, calendar) and geographic charts (geo map, geo scatter, geo heatmap). Table, pivot and tree views are chart types too. The preview updates live as you configure colors, labels and styling.
Map the columns of a SQL result or the fields of MongoDB documents to axes, values and categories with dropdowns. Auto Detect reads the actual values to tell numbers, text, dates and geographic data apart, falls back to field names such as "total" or "count" when the data is ambiguous, and gives you a starting mapping you can adjust.
Every chart is backed by a MongoDB query, a MongoDB aggregation pipeline or a SQL query. Edit Query, Edit Aggregation or Edit SQL reopens the source so you can change filters, stages, joins or grouping, and the chart refreshes with the new data. For SQL charts you can also point the same query at a different connection, such as dev, staging or prod.
Write a SELECT in the SQL editor, run it, and click Create Chart: the result set opens in the Chart Builder with its columns ready to map. Anything your database dialect allows can feed a chart, including JOINs, GROUP BY, window functions and CTEs. The same steps work on PostgreSQL, MySQL, SQL Server and SQLite; only the SQL dialect changes.
A bar chart of revenue by country can come from a SQL table or a MongoDB collection. Once the result is loaded, mapping, styling and saving work the same way.
Run it in a SQL Query activity, then click Create Chart. Auto Detect maps country to the X axis and revenue to the Y axis.
Build the pipeline in the aggregation builder, then click Create Chart to send its output to the Chart Builder.
This walkthrough follows the PostgreSQL example from the Chart Builder documentation.
reports/sales in the chart library.Transform and prepare your data before visualizing it. Use aggregation pipelines to group, filter, and calculate metrics, then feed the results directly into Chart Builder to create powerful data visualizations.
Build the data queries that power your charts without writing code. Use Visual Query Builder to filter and select exactly the data you need, then visualize the results instantly in Chart Builder.
Check out the documentation to explore all the details about the Chart Builder and discover more VisuaLeaf features.
Read the DocumentationGet started free with our Community Edition. Includes a 14-day trial of Pro features.