# Create a Bar Graph that displays student collection data from checkboxes

**URL:** <https://cl.desmos.com/t/create-a-bar-graph-that-displays-student-collection-data-from-checkboxes/1873>\
**Category:** Questions\
**Tags:** aggregate\
**Created:** [November 5, 2020, 8:09pm UTC](https://cl.desmos.com/t/create-a-bar-graph-that-displays-student-collection-data-from-checkboxes/1873 "2020-11-05T20:09:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christine\_Pruski](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/christine_pruski/32/1162_2.png) [@Christine\_Pruski](https://cl.desmos.com/u/Christine_Pruski)\
**Post date:** [November 5, 2020, 8:09pm UTC](https://cl.desmos.com/t/create-a-bar-graph-that-displays-student-collection-data-from-checkboxes/1873/1 "2020-11-05T20:09:09Z")

</div>

I have found the activity that allows us to create a starter screen to show student responses from a multiple choice question.

**Classroom Data Collection Screens**

> **[Classroom Data Collection Screens • Activity by Amplify Classroom](https://classroom.amplify.com/activity/5f20f2314047f76b8ff2f25e)**
>
> This activity offers starter screens that you can copy and paste into your activities. 
> 
> These screens are intended to help you create tasks that include aggregated data for your students. 
> 
> To copy a screen, open the screen you want to copy and then...

I would like to change the code so that students can multi-select responses. So basically the graph would display multiple bars for multiple responses from students.

TYIA for help.

---

<div class="post-metadata">

**Author:** ![Jme](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jme/32/516_2.png) [@Jme](https://cl.desmos.com/u/Jme)\
**Post date:** [November 24, 2020, 3:29am UTC](https://cl.desmos.com/t/create-a-bar-graph-that-displays-student-collection-data-from-checkboxes/1873/2 "2020-11-24T03:29:56Z")

</div>

I too was hoping for a Checkbox option for sharing data with classmates (or a limit of “choose 2 or 3” but when I changed the Choice component to “Checkboxes” it only shows the top-most choice in the graph.  
Since this was created by the Desmos team, maybe @JayChow can help?

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [November 24, 2020, 4:58am UTC](https://cl.desmos.com/t/create-a-bar-graph-that-displays-student-collection-data-from-checkboxes/1873/3 "2020-11-24T04:58:56Z")

</div>

We should add a screen for checkboxes here, thanks for the suggestion!  
In the meantime, the move is to aggregate each selection separately, then use the join function in the calculator to combine them into a single c\_lass list

> **[Multi-Select Bar Graph • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/5fbc91cf2426aa0d7969a032)**
>
> by Jay Chow

---

<div class="post-metadata">

**Author:** ![Jme](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jme/32/516_2.png) [@Jme](https://cl.desmos.com/u/Jme)\
**Post date:** [November 26, 2020, 12:31am UTC](https://cl.desmos.com/t/create-a-bar-graph-that-displays-student-collection-data-from-checkboxes/1873/4 "2020-11-26T00:31:03Z")

</div>

Yeah!  
Thanks so much- thanks just what I was thinking of.

---

<div class="post-metadata">

**Author:** ![David\_BUSH](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/david_bush/32/787_2.png) [@David\_BUSH](https://cl.desmos.com/u/David_BUSH)\
**Post date:** [November 12, 2021, 7:24pm UTC](https://cl.desmos.com/t/create-a-bar-graph-that-displays-student-collection-data-from-checkboxes/1873/5 "2021-11-12T19:24:08Z")

</div>

This in genius. I’m OK with most of it, but please can you explain how did you set the colour of the **polygon** used as a cover, **to “White”**? I’ve only be able to reproduce it by copying your whole screen and then changing the bits I need, I haven’t been able to create my own white polygon to use the technique elsewhere 🤔

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [November 12, 2021, 8:20pm UTC](https://cl.desmos.com/t/create-a-bar-graph-that-displays-student-collection-data-from-checkboxes/1873/6 "2021-11-12T20:20:11Z")

</div>

You can add (any variable name) this type of thing in an expression line in the graph and you’ll see white appear as a color choice:

```auto
w_{hite}=rgb(255,255,255)

```

You can change the rgb values to create more custom colors as well.  
(I don’t think it was available to everyone at the time of the original post. That’s why you didn’t see a color checked for the polygon.)

---

<div class="post-metadata">

**Author:** ![David\_BUSH](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/david_bush/32/787_2.png) [@David\_BUSH](https://cl.desmos.com/u/David_BUSH)\
**Post date:** [November 12, 2021, 8:42pm UTC](https://cl.desmos.com/t/create-a-bar-graph-that-displays-student-collection-data-from-checkboxes/1873/7 "2021-11-12T20:42:09Z")

</div>

Thanks Dan, I’ve managed to reproduce that in my graph  
 ![Screenshot 2021-11-12 204011](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/7/7c6fa4a3cf0216631d8c7c65a8888048384961d5.png)  
Here’s the Desmos I’ve created based on Jay’s activity  
[Multiple Choice Question with Aggregation](https://teacher.desmos.com/activitybuilder/custom/618ea344c3736a3be797f024?collections=600742a6026c6841fdf82be8)
