Open In App

Stacked Column Chart with Stacked Trendlines in Excel

A line that bounds a particular chart and shows the behavior as it propagates is known as a trend line. It is generally used for analytics purposes to get a close approximate idea from the chart. The chart can be of any type like Bar Chart, Scattered Chart, Line Chart, etc. By default, we can’t directly plot a Trendline over a Stacked Column Chart. Excel doesn’t provide us the flexibility to add Trendlines directly to a stacked column chart.

In this article we are going to discuss three different methods to add Trendlines on a stacked column chart using a suitable example shown below :



Example: Consider the table shown below. It consists of the details of the number of students enrolled in our various courses from the year 2017 to 2020.



Implementation :

Follow the below steps to implement a Stacked Column Chart with Stacked Trendlines in Excel:

Stacked Column

Now, to add Trendline(s) in a chart click on the “+” button in the top right corner of the chart. But wait, you can observe that there is no Trendline option. 

Since there is no Trendline option for stacked columns. Now we are going to discuss three alternate methods to add stacked Trendlines.

Method 1 :

The steps are :

Stacked Lines

Now, you can do the necessary format on the added stacked lines by selecting the stacked lines and then right-click on it and select “Format Series Lines.”

To add data labels in the chart :

Method 2 :

This is a color blending method. We will fill the stack area using the colors and then increase the transparency. The steps are :

Now the copied data will be added to the chart as shown below. It will be a clone of the previous chart and will be stacked over the previous chart as shown below:

The topmost four levels are the copied data, and we need to blend them and modify them to look like a Stacked Trendline. In order to do so :

Now, the stacked column of the copied data will be converted to a stack area. Now we can reduce the transparency and make it look like a Trendline. The steps are as follows :

Now, change the color according to the stacked chart for the data set. For example: For the course “DSA” the color is deep blue in the above chart. So, we need to change the color of the stacked area into deep blue and then increase the transparency to 60-65% so that it becomes blended. Repeat this step for all the stacked areas.

Finally, after all the modifications, the chart will look like this:

Method 3 :

Create the cloned version of the original chart as discussed in Method 2. Now, open the “Change Chart Type” window and then change the newly added stacked columns Chart Type to “Stacked Line with Markers.” Do it for all the copied data set.

You can change the color of the line and the line type by simply selecting and right-clicking on it and then select Format. It is recommended to use the same color as in the stacked column as we have discussed in Method 2.

Finally, after all the modifications and changing the chart style the chart looks like this:

Article Tags :