‘Hot doughnut’ chart in Excel

You may have used the doughnut chart in Excel in order to produce a chart like this

This is fine, but the problem is that the position of any category changes depending on the data. If you are using this to overlay into some story that you rely on the position of the categories being constant, you need to find another representation.

In previous posts I covered heatmaps, and how to make smooth color transitions in charts, amongst other color ramp topics

We can apply the same thing to doughnut charts. Here’s the above chart, this time using a heatmap scheme, and with the categories in a constant position.

Using the color ramp library, we can show a smooth transition between each of the items. These would be used when it is important the categories take up the same position and are the same size, yet you want to use a doughnut type style. Note that the transition implies a connection between the category items, so you need to carefully order the items and be careful in interpretation. As with all doughnut and pie charts, there may be other charts that are more appropriate. I would use this to illustrate a trend or a focus area, rather than to illustrate exact values. You can of course change the granularity to make the category items discrete if this is more appropriate.

In any case, The code is more or less a one liner.


Of course you can tweak the parameters to add multiple categories, and labels

Or change the heatmap properties

or change the granularity of the heatmap and add value labels

For more detail on this, see the excel liberation site.

About brucemcp 223 Articles
I am a Google Developer Expert and decided to investigate Google Apps Script in my spare time. The more I investigated the more content I created so this site is extremely rich. Now, in 2019, a lot of things have disappeared or don’t work anymore due to Google having retired some stuff. I am however leaving things as is and where I came across some deprecated stuff, I have indicated it. I decided to write a book about it and to also create videos to teach developers who want to learn Google Apps Script. If you find the material contained in this site useful, you can support me by buying my books and or videos.

Be the first to comment

Leave a Reply

Your email address will not be published.


5 × 3 =