Is there a way to have multiple lines on one graph and use computational layer to either show or hide specific lines?
I’m trying to create a problem where the graph will either be proportional or linear non-proportional or nonlinear as a multiple choice question. The student needs to pick the proportional graph, but I don’t it to be the same graph every time, so I need a way to create several lines in one graph and if that is the graph that is supposed to be true, the proportional line will be the only line visible, if it is not true one of the other lines will be the only line visible.
1 Like
You can certainly use restrictions to conditionally display pretty much anything in the graph. Are you referring to having different graphs for a multiple choice selection? There’s not currently any way to use CL to control multiple choice graphs. If you absolutely want dynamic choices, you’d need to fake them in a graph component, then you could seed to have different graphs.
1 Like
I was planning on faking the graph components by having multiple graphs on the screen, labeled as A, B, C etc, but within the graph use randomness to create different kinds of lines, so they are not always in the same order or the same line.
1 Like
Here’s a fake grid I made with random linear only choices. I’d need to think a little more to work in some non-linear choices. You could either label the options and use an MC component, or (more complicated) make clickable polygons to select in the graph.
This helps reduce the number of graphs components on the page to take up less space. Thanks.
I updated to include one or two parabolas. I was trying to join lists of functions, but that didn’t work so I was a little hacky with the E_xp.
I hooked up a few things. You can click polygons and it will mute the other choices by increasing the opacity of a borderless white polygon. Clicking again unmutes everything. If you don’t like/want the in graph buttons, you can use an MC component instead.
I like it. Thanks. I’ll have to investigate it to see how it works.