Sign in to follow this  
solucionar_tasker

Execute event on DRAG a NODE

Recommended Posts

Hi,

 

Sorry for my english.

 

I wish know if i can execute an js code when i DRAG a node on chart.

For exemple:

in the , i can set the "link" to be execute when i CLICK in a node on chart.

But i can't execute this function when i DRAG a node.

 

I need execute this functior for get a "id" (key value) for this node.

When a set a drag event (JQUERY) for this node, i can't get the id because i don't have how to know if this is the same on the getJSONData() object.

 

How i can do that?

Thx

 

 

Share this post


Link to post
Share on other sites

Hi,

 

Please try using "FC_ChartUpdated" function which gets called when a chart is updated. 

 

Ref.

 

function  FC_ChartUpdated (DOMId)
{
        alert ( DOMId + " chart has been updated." );                         
        myfunc();
}
 
You may call your function inside this function. However, please note that this function gets called each time the chart is updated.
 
Hope this helps.

Share this post


Link to post
Share on other sites
Hi,

 

i'm glad for your answer. This helped me so much and solve my problem! =)

 

 

But, i have more two problems:

 1º -> in my drag node chart, sometimes, when i draging a node, appears an window with details of this node. I don't know how to make this window not show in my chart. Exists an method to set to make not show this window? 

 

 2º -> in my drag node charts, many nodes appears "blurred" (blurry). This problem ocurred in the Internet Explorer, Google Chrome and Firefox. How i can fix this?

 

 

 Thx

Share this post


Link to post
Share on other sites

Hey,

 1º -> in my drag node chart, sometimes, when i draging a node, appears an window with details of this node. I don't know how to make this window not show in my chart. Exists an method to set to make not show this window? 
 

>>Can you try setting "viewMode" attribute to 1?

 2º -> in my drag node charts, many nodes appears "blurred" (blurry). This problem ocurred in the Internet Explorer, Google Chrome and Firefox. How i can fix this?
 

>>Can you share the XML along with screenshot?

Share this post


Link to post
Share on other sites

Hi, 

Problem 1 was solved with viewMode (was seted viewMode='1')., thanks for your answer. 

To problem 2, i did the uploded of the image. Can  you see the blurred nodes?


r8xr.png
http://imageshack.com/a/img200/4802/r8xr.png

For the code, i did the uploaded of the xml in 4shared. Can you download this?

http://www.4shared.com/document/waq7VTWE/radar.html


Thx

Share this post


Link to post
Share on other sites
Guest Rishab

Hi,

Can you please provide me the sample application or the live URL of your application also let me know the browser versions in which the issue is replicated?

Since I am are not able to replicate the issue in the XML data provided in the earlier post.

The attached item is the chart rendered at my end using the data you provided.

Awaiting response.

post-47865-0-31808800-1384344624_thumb.jpg

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
Sign in to follow this