I've got a page of horizon charts and a drop down which serves as a category selector. When a different value is selected in the drop down, it clears out the current charts and loads new ones. Visually, everything works perfectly.
The problem is when I look at the browser's Network console (Chrome) I still see requests to the old metrics, which pretty quickly floods the server with too many requests. I am using graphite as the data source.
Here is my 'remove' code which is triggered on a change event on the selector:
d3.selectAll(".horizon")
.call(horizon.remove)
.remove();