Skip to content

Dynamic Funnel Graph using React #39

@faizansdq

Description

@faizansdq

Hi greghub,

Thanks for building this amazing funnel graph library, this really helps in building funnel graphs easily.
I am experiencing the issue while drawing the graph using data from API. I can easily build the graph with static data, issue arises while using dynamic data.
I am writing FunnelGraph code within useEffect, where every time data changes the graph should be re-drawn using updated data. And the graph is re-drawn every time the data changes but it keeps overlapping on the previous graph.
Is there a method to clear previously drawn graph, so it doesn't overlap on the newly drawn graph? All the React examples that I have seen till now use only static data and only draw once.
Please help.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions