Using d3.js
, I created a unique shape known as a Limaçon. By moving the point along the x-axis (referred to as px
), the shape undergoes changes.
https://i.sstatic.net/Xz8OG.gif
(from MathWorld - A Wolfram Web Resource: wolfram.com)
Now, I want to incorporate user interaction similar to an example using angular.js that changes RGB color with sliders (jsfiddle). How do I modify my jsfiddle to achieve this? Is it like using onclick()
?
My goal is to move a slider around to adjust the variable 'px' in my d3.js code, which moves a point horizontally. This requires recalculating the radii of numerous circles.
I did come across some information here: D3 within an AngularJS app