Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

horizon.remove does not unbind / remove listeners / data fetch #77

Open
ram-nadella opened this issue Sep 18, 2014 · 0 comments
Open

horizon.remove does not unbind / remove listeners / data fetch #77

ram-nadella opened this issue Sep 18, 2014 · 0 comments

Comments

@ram-nadella
Copy link

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant