Replies: 1 comment 4 replies
-
It does not feel like a Quarto issue. Do you observe the behaviour outside of Quarto? Also, could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks. You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I wrote this code snippet in a ojs block in a quarto document to animate a oscillating circle using D3.js on my webpage. The circle oscillates in the vertical direction and does some random motion in the horizontal direction. The slider should just change the amplitude of the oscillation. The problem is now that changing the slider value will increase the oscillation amplitude but also the speed of the animation and the step size in the horizontal direction. If I comment out circle.attr("cx", newX); everything is back to normal with no speed up but of course also no random motion.
I have had similar issues also with other code. What could be the issue here?
Thank you for any help!
Beta Was this translation helpful? Give feedback.
All reactions