This PR changes d3.forceX and d3.forceY to d3.forceCenter, which has a behavior, in D3v4, closer to what was intended (changes in D3v4 make d3.forceX and d3.forceY cause a drift from the top left corner). It also forces the the force simulation to "reheat" whenever it's updated, to resolve an issue when the plots are used in shiny and arguments are being updated interactively.
This PR changes d3.forceX and d3.forceY to d3.forceCenter, which has a behavior, in D3v4, closer to what was intended (changes in D3v4 make d3.forceX and d3.forceY cause a drift from the top left corner). It also forces the the force simulation to "reheat" whenever it's updated, to resolve an issue when the plots are used in shiny and arguments are being updated interactively.
this PR resolve #176, #109, and #174