Recommended Posts

Hello,

I'm trying to use the function getJSONData to get updated informations.

The data that i'm getting are not updated.

 

    dataplotClickHandler(eventObj, dataObj) {
        this.zone.run(() => {
            console.log(this.chartObj.getJSONData());
        });
    }

 

 

Attached the issue.

Thank you.

 

drag_node_1.PNG

drag_node_2.PNG

Share this post


Link to post
Share on other sites

Hi,

 

In a Drag node chart, the getJSONData() API method fetches the dataSource that is initially set to the chart constructor. Any changes by dragging does not modify the dataSource, so getJSONData() will always fetch the initial dataSource irrespective of any drag modification visually.

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now