Can you fix the CL on this? It collects students results of making a perfectly parallel line.

Can anyone fix the CL on this activity?

Slide 2’s data and graph is stuck on “at 100 attempts, 3 people got perfect”. Prior to combining the two activities, it truly calculated the classes data and displayed it.

*Credit to Kurt Salisbury for the Perpendicular Lines activity & Desmos for the parallel activity!

Links to the two original activities:

Original Parallel Lines Activity by Desmos: Parallel Lines • Activity by Amplify Classroom

Original Perpendicular Lines Activity by Kurt Salisbury Perpendicular Lines - A.03.03 • Activity by Amplify Classroom

This is probably the primary culprit. If you’re referring to a component on another screen, it must have a unique name. Both Screens 1 and 11 have a graph1, so the CL doesn’t know which one you want to use. You’ll want to rename at least one of them, and update any CL that was supposed to link to the renamed component with the new name.

I know you copied most of this, but a tip for using components in CL is to make a generic variable initially. That way, if you do need to change the component name, you only need to edit it in one place in your code. Also, when referencing the component you’re in, using this instead of the component name makes copying screens cleaner.

g = graph1a

myExampleVariable = g.number(`a_1`)
anotherVarFromThisComponent = this.number(`S_1`)