Skip to content

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

@ram-nadella

Description

@ram-nadella

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions