Display Poll Results with a Pie Chart

klipfolio image

Published 2025-10-24

Summary - Pie charts are one of the most common ways to show poll results. They allow for quick dissemination of the data and to see results in terms of the whole picture. Let's take a look at how to display poll results using a pie chart.

A Klipfolio support case asked how to display poll results using a pie chart in Klipfolio Klips. The challenge: tally results when each vote is recorded as a separate row and the choice is stored as text. Here's what the data source may look like:

AB
1DatePoll Result
23/18/2025Yes
34/18/2025Yes
44/18/2025Yes
54/18/2025No
65/18/2025Not Sure
75/19/2025Not Sure
86/19/2025Not Sure

How do we visualize this data?

The hurdle with a data set like this is tallying the results. The trick is using the Klip Editor to prepare the data so the dashboard reads it the way you intend. Use two functions: CountDistinct and Group.

Tallying the results

First, tally the values to get a total for each response. The CountDistinct function counts each unique value in a column or array. If you select column B:B, you'll see 3 Yes, 1 No, and 3 Not Sure votes. Notice that a Slice function is used within CountDistinct. By default, Slice removes the first value from your selection, meaning you don't have to worry about accidentally including the column header as a result in the pie chart.

Klip Editor Countdistinct Poll

Labelling the results

Next, label the results so the pie chart shows what each slice represents. The Group function eliminates duplicate values from a column and reduces a list of repeating elements to a single instance of each name. Since column B:B contains the response text, select that column. Again, use Slice to remove the column header from the chart.

Klip Editor Group Poll

The finished chart

The end result is a simple pie chart:

C8ce81a44a0fbbe71ccb5e6252e7a5c1

What if you don't want to use a Pie Chart?

This method works well with the bar/line chart component. To apply it in a bar or line chart, assign CountDistinct to the first series sub-component, then assign Group to the X Axis sub-component. Since this chart uses a single series, invert the X and Y axis in the Chart component's Properties tab.

96bab887dfbd821b4ae71996bef3c9c3

Where will you encounter this type of data?

This pattern is common with survey tools such as Google Forms, SurveyMonkey, or Typeform, where each record is based on the unique identity of the person casting the vote rather than a pre-summarized total. 

Need help with more functions available in Klipfolio Klips? Check out the Function Reference Guide here.

Related Articles

Create custom dashboards for you and your team.Get Started

Build custom dashboards
for you and your team.