Chart Blocks (Classic apps)
Chart Block Overview
Using the Chart block, you can add different types of charts to your Softr app. The charts get the data from data sources.
In the following articles, you can get familiar with different chart layouts that are available. In this article, we’ll set up a chart (using a Bar Chart as an example) from scratch and explain each configuration option.

To start configuring the chart, you first need to link it to a data source to start displaying your data. We are going to use Airtable for that purpose. So, let’s start.
Linking a data source


This part is similar to the List block settings, where you need to connect a data sourcefrom the Data tabto get your chart data.
Conditional Filters
Under the Source tab, you also have the Conditional Filters section. Chart Conditional Filters work similar to List conditional filters.

Features
Now, let’s see what we have in the Features tab of block’s settings.

Title and Subtitle
Type
Next, you have the Type parameter where you select between different chart types. Let’s select the Bar Chart type and move on to configuring our data.
Metrics
As you can see, each record has a Type field, a Sub-type, and a corresponding value, which is negative in case of expenses.
Let’s say we want to display the sum of incomes and expenses for each month.
For that, we have to define what is our metric. In our case incomes and expenses are stored in Airtable Value field, and the metric should be a sum of those.
The Aggregate function has the following options:
- Sum. Calculates the Sum of all the values for a given category.
- Average. Calculates the average of all the values for a given category.
- Min. Picks the smallest value of all the values of the category.
- Max. Picks the biggest value of all the values of the category.
- Count distinct values. Adds up the number of records that contain a unique value.
- Count all. Adds up the number of records present in a given grouping category.
Groupings
Now, let’s explore each setup option in greater detail.
Time interval
For the day and month time intervals you can choose relevant display formats:
| Time interval | Display formats |
|---|---|
| Day | YYYY-MM-DD MM/DD/YYYY DD/MM/YYYY MMM DD, YYYY |
| Month | YYYY-MM MM/YYYY YYYY/MM MMM YYYY |
Sort by
Next, we have the Sort by dropdown, which will have the following options:
- Categories // A-Z. Order by the Category field values from A to Z.
- Categories // Z-A. Order by the Category field values from Z to A.
- Values // A-Z. Order by the Value field values from A to Z.
- Values // Z-A. Order by the Value field values from Z to A.
Example: If our Group by field is the Date field, and we select “Categories //A-Z,” we’ll have the following ordering: 2019-01, 2019-02, 2019-03, etc. (by alphabetical order), as on the screenshot above.
Max categories
Include empty cells
Sub-grouping
Lastly, we can choose to Treat empty cells as 0 as well as Show axis label.
Options
Orientation
Show zoom
Show tooltip
When this option is enabled, the users will see a tooltip when hovering over each individual bar. The tooltip contains all the information about that specific bar.
Enable download
When this option is enabled, the users will be able to download the chart to their device in .svg format.
Data sampling and data freshness

Charts in edit mode
- Data sampling - only a small sample of records is used to generate your charts in edit mode to optimize performance
- Data freshness - data shown in edit mode is real-time.
Charts in preview mode
- Data sampling - all the specified records are being shown, limited by the max number of “records per dynamic block” specified in your plan.
- Data freshness - data refreshes every 15 minutes.
- Charts include the information about when the data on the chart was last refreshed.
- App builders can instantly refresh data in preview mode. Instant data refresh is only available in preview mode for testing purposes. Not available to your end users in the live app.
Charts in live mode
- Data sampling - all the specified records are being shown, limited by the max number of “records per dynamic block” specified in your plan.
- Data freshness - data refreshes every 15 minutes. Charts include the information about when the data on the chart was last refreshed.
Hiding data freshness information
Sometimes, you might want to hide data freshness information, typically in cases where a chart serves purely as a visual aid for your narration on a website, rather than being the object of analysis.
Here’s a little custom CSS snippet that will allow you to hide the data freshness information:
<style>
div[category='Chart'] span[class*='message'] {
display: none!important;
}
</style>Type: Bar Chart

This chart type lets you display your data through simple bars.
Type: Stacked Bar Chart
The Stacked Bar chart layout allows you to compare data in a part-to-whole manner, over time or across categories.
The setup is similar to that of a Bar Chart with a unique feature: it allows the presentation of subcategories within a single bar (stacked), as opposed to showing each subcategory with a separate bar.
Example
Let’s say you are a sales manager and you want to analyze bookings by month, split by deal owners. You want to both understand what is the total sum of won deals, as well as how each sales person (deal owner) contributed.
Here is the output chart we aim at preparing:

Setting up the chart
Take a look at the Airtable base example. It has different deals at different sales stages, close dates and deal owners.

Having a base, let’s add a Stacked Bar Chart block, and configure it.
Conditional filters – let’s take into account only the deals with a Deal stage: Won

Aggregate function – we want to SUM all the deal values

Groupings
Then we want to group these won deal values by the deal close date, with a month time interval →

Finally, we want to further group the data by deal owners →

The Stacked Bar Chart block is ready:

Show and hide data point labels
Sometimes labels on stacked bars can look a bit too crowded, so among options shared with other chart types, the Stacked Bar Chart has an additional option to decide whether to show data point labels on stacked bars.



Type: Line Chart

The Line Chart chart type represents the data through lines connected by nodes.
Type: Area Chart

The Area Chart is basically a Line chart, where the area below the lines is color-filled.
Type: Scatter Chart

The Scatter type is similar to the Line Chart with the only difference that there are no connecting lines between the nodes.
Type: Pie Chart
Pie Chart is a circular graphic that is divided into slices to show numerical proportion. The setup of the Pie Chart block is similar to that of the Bar Chart described here, but there are some differences related to the unique characteristics of this chart type, which we’re going to discuss here.
The following image illustrates a pie chart that uses the same income/expense data from Airtable we used in our chart block overview.

We’ve used the same Sum aggregate function, and we can see that each slice shows the sum of incomes and expenses for a given month, and what’s the proportion of each slice (e.g. 23.81% for January). At the top of the chart, there’s the Legend section, which indicates which color corresponds to which record or group of records. So, let’s see how the Legend is configured.
Chart legend
First of all, you can choose whether you want to display a Legend or not. If the toggle is enabled, you can change the Legend position as well as switch the Legend direction between vertical and horizontal options.

Type: Donut Chart

The Donut Chart is a Pie Chart with its center cut out to look like a donut.
Type: Rose Chart

The Rose Chart is a radial graph with multiple axes radiating out from the centre. Instead of points being plotted along an axis, bars are drawn to show the quantity of each variable. Rose Charts are commonly used to indicate wind speed or noise levels.
The setup of the block is similar to that of the Pie Chart.
Summary Cards
This block is for displaying data from a data source in a specific format that’s suitable for summaries, key stats, and similar. So, let’s go through the block settings and see how it works.
Conditional Filters
You can learn more about conditional filters here.
Summary Options
In this section, you can customize the Title and Subtitle of the block.
Summary Card
This is where you customize the layout of the summary card and map the fields from your data source. So, let’s see how this works on a practical example. Let’s say you have an Airtable table with quarterly revenue data for a number of companies, and you want to summarize the annual revenue of each company on your Softr app. Below you can see our table, where we have added a Sum formula field that calculates the annual revenue based on data from each quarter. We also have the names of the companies and a Color field, which we are going to use to apply different colors to each summary card.

Finally, let’s connect the data to our Summary block and set it up.
