# Include Negative Values in the Total in Stacked Column Chart

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Progress® Kendo UI® Column Chart for jQuery</td>
 </tr>
</table>

## Description

How can I include the negative values in the label's total of a Stacked Column Chart?

## Solution

Use the [`series.labels.template`](https://www.telerik.com/kendo-jquery-ui/documentation/api/dataviz/ui/chart/configuration/series/labels#serieslabelstemplate) function to calculate and return the desired result.

```dojo
    <div id="chart"></div>
    <script>
      $(function(){
        $("#chart").kendoChart({
          dataSource:{
            data:[{
              a: -11,
              b: 1,
              c: 11
            },{
              a: 1,
              b: -1,
              c: -1
            }]
          },
          seriesDefaults: {
            type: "column",
            stack: true
          },
          series: [{
            field: "a",
            name: "a"
          },{
            field: "b",
            name: "b"
          },{
            field: "c",
            name: "c",
            labels: {
              template: function(data) {
                var seriesData = data.dataItem
                return seriesData.a + seriesData.b + seriesData.c
              },
              visible: true
            }
          }]
        });
      });
    </script>
```

## See Also

* [Kendo UI Chart API Reference](https://www.telerik.com/kendo-jquery-ui/documentation/api/dataviz/ui/chart)
* [Themes and Appearance of the Kendo UI Widgets](https://www.telerik.com/kendo-jquery-ui/documentation/styles-and-layout/less-themes/overview)
* [Common Issues in Kendo UI Charts](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/charts-troubleshoot-common-issues)
* [Common Issues in Kendo UI](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/examples-fail-to-load-sample-data)
* [Kendo UI JavaScript Errors](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/java-script-issues)
