> For the complete documentation index, see [llms.txt](https://docs.powerpointgeneratorapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerpointgeneratorapi.com/examples/chart/set-as-total-waterfall-chart.md).

# Set as Total - Waterfall chart

1. Select the shape by `name` you want to modify. See [here](/knowledge-base/finding-shape-names.md) to find shape names.
2. Use the `settings` field to define which data points should be treated as total by setting the `set_as_total` property to `true`.

Reference: [chart](/json-template-syntax/shapes/chart.md)

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1ErSP84Cpqp78whpSK0djFJIQnMB52jwP) | [output.pptx](https://drive.google.com/uc?export=download\&id=11dKsIKo4ZNW1JjVKolu0hGmD5Fw0sVxL)

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="/files/bMFBDi8ydm4FMY7t72GL" alt=""><figcaption></figcaption></figure>

***

<figure><img src="/files/T6NV5ZDSKY2y7zp104m7" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="58.33333333333333%" %}
{% code lineNumbers="true" %}

```json
{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "waterfallChart",
            "data": [
              ["Series 1"],
              [
                "Item 1",
                "Item 2",
                "Item 3",
                "Item 4",
                "Item 5",
                "Total"
              ],
              [1],
              [2],
              [3],
              [4],
              [5],
              [15]
            ],
            "settings": {
              "datapoints": [
                {
                  "seriesIndex": 0,
                  "categoryIndex": 2,
                  "set_as_total": true
                },
                {
                  "seriesIndex": 0,
                  "categoryIndex": 0,
                  "set_as_total": true
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

```

{% endcode %}
{% endcolumn %}
{% endcolumns %}
