iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
📈

How to Display Cumulative Charts Using kintone's Standard Features

に公開
2025/11/09

Article Overview

I thought about and implemented a method to display cumulative graphs using kintone's standard features.

What I want to achieve is shown in the image below.

Since kintone's standard features cannot automatically display a cumulative graph from, for example, monthly figures, we will display a cumulative graph using standard features by pre-generating data specifically for that purpose.

If you would like to implement the content of this article in your own company, please feel free to contact us via the kintone Spot Development Free Consultation Form.

Basic Workflow

  1. Prepare a Monthly Sales App
  2. Prepare a Sales Accumulation App and pre-add empty records
  3. Update the amounts in the Sales Accumulation App using a plugin
  4. Display the cumulative graph using kintone's standard features.

1. Prepare a Monthly Sales App

Prepare an app like the one shown below. For simplicity, I have set one record per month, but it should work even if there are multiple records.

If you create a graph with this data, it will look like the image below, showing only the monthly sales figures.

2. Prepare a Sales Accumulation App

Next, prepare a separate app for sales accumulation. To store the cumulative totals, pre-enter records for 12 months in advance. Set the cumulative sales amount field to 0 for now.

3. Update the amounts in the Sales Accumulation App using a plugin

Next, we will set up a mechanism to update the cumulative figures from the Monthly Sales App to the Sales Accumulation App. In theory, running this once a month should allow for the management of monthly cumulative graphs. While it is possible to enter the data manually once a month, we will use a plugin this time to enable updates with just one click.

The plugin we will use is the Related Record Aggregation Plugin by rex0220.

rex0220 Related Record Aggregation Plugin

The general idea is that any plugin capable of aggregating information from a specific app based on certain conditions and updating another app can likely achieve something similar to what is described in this article.

Configure the Related Record Aggregation Plugin in the Monthly Sales App. The settings look like the image below. I set it up quickly, so it might be a bit redundant and could potentially be simplified.

What this does is "sum the sales amounts from the current app (Monthly Sales App) for the target month (from the 1st to the end of the month) and write them into the corresponding month's record in the Sales Accumulation App."

When you actually run it:

Update successful!

Looking at the Sales Accumulation App, you can see that the figures have been correctly assigned as cumulative totals.

4. Display the cumulative graph using kintone's standard features.

Then, just set up the graph using kintone's standard features as usual.

The cumulative graph can be displayed using standard features.

Important Considerations

Please be mindful of API consumption. In this case, we accumulated monthly figures on a monthly basis, but if you were to accumulate transaction-level figures on a daily basis, please verify how many API calls will be consumed and integrate it carefully.

Also, for the sake of clarity, we pre-added empty records to the Sales Accumulation App this time, but with proper configuration, it should be possible to generate them automatically.

I hope this proves useful in some way.

Click here to contact us via the form: kintone Spot Development Free Consultation Form

Discussion