Sign in to follow this  
avva555

node position not displaying properly in Drag node Chart

Recommended Posts

hi,

 

i have some issue with node position in drag node chart provided in power chart XT

 

 XML used to prepare this chart also provided as attachment

 

DIV i am used to show this chart size is 1000px X 1000px

 

please tell me why chart is not displayed in center.

 

 

 

 

 

 

post-46819-0-46082800-1375685614_thumb.jpg

XML.xml

Share this post


Link to post
Share on other sites

see that <div> width is 1000X1000

 

so i used 600 it's near to center

 

but it's displaying near to end 

 

 

 

that to i am dynamically giving position of the   nodes(X,Y) based on the no of nodes present at the level

 

X=1000,Y=1000,divider=100(Space between two node in the same level)

Suppose

no of nodes at level -1 = 1  (A)

no of nodes at level -2 =  2 (B,C)

 

A(x,y)= ((1000)/(noofnodes+1)+divider, Y-(level*100))   A(600,900)

B(x,y)=  ((1000)/(noofnodes+1)+divider, Y-(level*100))   A(333,800)

C(x,y)=  ((1000)/(noofnodes+1)+divider, Y-(level*100))   A(666,900)

 

 

this is the way we are preparing positions for node

 

 

when xml contains proper position Drag Node Chart is not displaying 

 

i felt this is a bug . please confirm  is this a defect in this chart ? 

 

or any changes that i need to follow in my xml 

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hey,

 

It seems you have set explicitly the X-Axis lower and upper limit to "0" and "100" resp.

 

So, for the fixed X-Axis upper limit, the dynamically generated X-position for the nodes with value "600" will not adjust automatically.

 

So, could you please try once by removing the "xAxisMinValue" and "xAxisMaxValue" attributes from the <chart> element of the XML data, to let the chart calculate the suitable X-Axis limiting values automatically for you (as you are providing the "x" values if <set> element dynamically)?

 

For more information on "Drag-node Chart Specification Sheet", please visit the link: http://docs.fusioncharts.com/powercharts/Contents/?ChartSS/DragNode.htm

 

Hope this helps!

 

Looking forward to your valuable response.

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