The chart configuration panel is divided into three sections: Data query, Chart options, and Interaction events, plus Cancel, Preview, and Save buttons at the bottom.
Let's first look at the "Data query" panel to understand the two query modes (Builder/SQL) and their common features.

Tips: To configure the current content more easily, you can collapse other panels first.
The top is the action bar:
From top to bottom:
Sum, Count, Avg, Max, Min.Count to count records, Sum to calculate a total.YYYY-MM, YYYY-MM-DD) to facilitate grouping by month or day.Limit and Offset to control the number of returned rows. It's recommended to set a small Limit when debugging.Table / JSON in "View result" to check the columns and values.
Later, when configuring "Chart options", you will map fields based on the fields from the selected data source and collection.

Table / JSON in "View result" to check the columns and values.Later, when configuring "Chart options", you will map fields based on the columns from the query result.
For more information on SQL mode, please see Advanced Usage — Query Data in SQL Mode.