# 民意调查中的绝对数字

**URL:** https://meta.discourse.org/t/absolute-numbers-in-polls/32771
**Category:** Feature
**Tags:** polls, completed
**Created:** [2015年九月1日 09:38 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771 "2015-09-01T09:38:05Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![lightyear](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@lightyear](https://meta.discourse.org/u/lightyear)
#### Post date: [2015年九月1日 09:38 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/1 "2015-09-01T09:38:05Z")

</div>

Heyah,

I remember there was a great topic once explaining the usage of the poll-plugin, but even after searching the forum for 15min I can find it (found a reference to it, that leads to a 404 though). So in case that is already implemented, please let me know how to activate it and move this out of this section 😉 .

* * *

Love the polls. We are using it internally to gauge interest and make participation easier. It also acts as a replacement for doodle. One thing we are using it for is to easily pre-organise events, for e.g. asking who’s gonna come and what food they want (and having emoji in it, makes it awesome):

 ![](https://global.discourse-cdn.com/meta/original/3X/6/0/609bb394a9309395fd3b3443bb2234d2e2a36262.png) 

However, the “relative” counts are really irrelevant in this case for us. So when looking at the results, to figure out how much pizza/sushi to order, I have to make the reverse calculation. It’d be great, if I could configure the poll to use absolute instead of relative numbers on a case-to-case-basis.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2015年九月1日 11:22 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/4 "2015-09-01T11:22:09Z")

</div>

At a minimum we would be fine with a PR that add a “title” attribute to `.percentage` that describes how many votes total there are.

Maybe also a “hint” to work in “total” mode, but that is up to @codinghorror to decide.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2015年九月1日 13:10 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/5 "2015-09-01T13:10:28Z")

</div>

I think adding a “`results`” attribute which defaults to “`percentage`” but can also be set to “`total`” shouldn’t be that hard. Most of the work is done client-side anyway.

---

<div class="post-metadata">

### Author: ![lightyear](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@lightyear](https://meta.discourse.org/u/lightyear)
#### Post date: [2015年九月1日 14:09 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/6 "2015-09-01T14:09:15Z")

</div>

Would a PR doing that be accepted?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2015年九月1日 14:10 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/7 "2015-09-01T14:10:50Z")

</div>

Of course it would be 😉

---

<div class="post-metadata">

### Author: ![simonv3](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonv3/32/119552_2.png) [@simonv3](https://meta.discourse.org/u/simonv3)
#### Post date: [2021年一月13日 15:54 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/8 "2021-01-13T15:54:28Z")

</div>

我们最近在一个有超过100人参与的投票中遇到了这个问题，当时我们需要具体的数字，却没想到这会成为一个问题。如果这个问题在渲染时出现，能否指点我一下代码中是在哪里处理的？我可以试着看一下。

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2021年一月13日 16:50 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/9 "2021-01-13T16:50:28Z")

</div>

如果您已安装数据探索器插件，可以使用提供的查询 `/admin/plugins/explorer?id=-16` 来获取完整结果。

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [2023年七月5日 08:02 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/10 "2023-07-05T08:02:48Z")

</div>

我是否理解正确，此功能仍未实现？

如果是这样，我将请求在 #Marketplace 上报价以寻找融资方案。

哪个是合适的投票选项？

_Poll ([view on site](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/10))_

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [2023年七月5日 08:16 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/11 "2023-07-05T08:16:11Z")

</div>

> [@lightyear](#):
>
> 我记得曾经有一个关于投票插件用法的很棒的主题，但即使我搜索了论坛15分钟，也找不到它（找到了一个指向它的参考，但结果是404）。

当前文档是

> [@Creating and managing polls](https://meta.discourse.org/t/create-a-poll-that-others-can-vote-on/77548):
>
> bookmark This guide explains how to create polls in Discourse to gather votes from users on any topic. person_raising_hand Required user level: All users information_source By default, polls are enabled in Discourse and users of trust level 1 or above are allowed to create them. Site admins can adjust who can create polls via the poll create allowed groups site setting and disable polls using the poll enabled site setting. Creating a poll from the toolbar The easiest way to create…

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [2024年七月3日 12:31 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/12 "2024-07-03T12:31:08Z")

</div>

我正在创建一个 PR 来进行此项改进：

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/7/9/77947127f35463aaf85e6318f9e9600630823d59.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2024年七月3日 13:30 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/14 "2024-07-03T13:30:00Z")

</div>

我留了张便条 😅

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [2024年八月7日 10:00 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/15 "2024-08-07T10:00:39Z")

</div>

此功能已合并 🙂

> <https://github.com/discourse/discourse/pull/28240>
>
> What does this add?
> ===================
> 
> This PR adds an extra button to the …poll to show the absolute number of
> people who voted for each option. This button will only be added for
> the single/multi-select bar chart.
> 
> Related meta topic: https://meta.discourse.org/t/absolute-numbers-in-polls/32771
> 
> Screen record
> ============
> 
> 
> https://github.com/user-attachments/assets/06cb583d-fa64-4ae8-9e1b-a51f92606bed

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2024年八月7日 10:18 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/16 "2024-08-07T10:18:24Z")

</div>

感谢您稍微推迟一下以适应我的更改 :拥抱:

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [2024年八月9日 10:00 UTC](https://meta.discourse.org/t/absolute-numbers-in-polls/32771/17 "2024-08-09T10:00:12Z")

</div>

此主题已在 47 小时后自动关闭。不再允许回复。
