Skip to content

Dynamically changing data causes Error: <g> attribute transform: Expected number, "translate(NaN,NaN)" #464

@irynacodes

Description

@irynacodes

With a button click, I can trigger a call to the server that returns different data with a different root - I then send it to the chart with:
.then(response => { this.#chart.data(response).render(); });

The chart rerenders and the new data is there, but i get the following error in the console:

Image Image

The error is thrown as many times as there are links that need to disappear with this data switch:

Image

Updated chart with new data:

Image

Could you please help me figure out what exactly causes these errors? Thanks in advance.

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