Interactive graphics in STACK questions
Hans Jakob Rivertz
Norwegian University of Science and Technology, Norway
Abstract
- Best practice for writing to STACK input fields through JSXGraph.
- I will talk about my current understanding of integrating JSXGraph in STACK. In Trondheim, we discovered that many STACK-exercises stopped working. I went through the exercises and found that they used some ad-hoc solutions.
- Some of these JSXGraph code had in common that they extracted the ans1 by calling the elements directly instead of using the JSXGraph API. In a newer implementation of the interaction between STACK and JSXGraph this does not work anymore. There are many reasons why this was a not good practice, besides that it does not work anymore. One of these is that there might be several exercises on one page with the same name on the input-fields. Another is that there is a reason why APIs are deployed.
- In addition, many of the exercises used the same input variable for the state and the answer. By using a JSON-string for the state and writing directly to ans1 as a string in the format given in the Input: ans1-field, it is much easier to write the potential response trees.
- Interactive clickable exercises for graphs, logic and set theory.
- I will also present some old and some new interactive exercises.