Code to change the lines to/from dotted, solid, disappeared by clicking?

Right now I have good code for the first 3 graphs. I was hoping to condense the process for the final graph so students won’t have to scroll or switch screens. IDEALLY, I’d like them to be able to click on the line (or the draggable point) to switch between the dotted or solid or infinity options.

is an example of how I want the line to work (this one only alternates between dotted and solid).

Here’s a possible solution, there are many objects that you can click,
observe also that the points can be clicked but also dragged if you grabbed them closer to the center:
https://www.desmos.com/calculator/qadrbp3gwf

you can click:

  • the points on the curve
  • the points on the x-axis
  • the vertical lines
  • the orange curve (to reset any infinity values)
  • the orange stripe (to reset any infinity values)
1 Like