Login Register Wishes Forum About
Language Reference » Spring charts functions » linkProperties
Help topics
Latest updates
4669d  replaceImageMapTitle
4669d  replaceImageMapValues
4669d  createFunctionSerie
4669d  setAbsicssaPosition
4669d  negateValues
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
linkProperties - Defines the properties of a link between two nodes

This function allows you to specify the properties of a link between two nodes. You can specify the link color, ticks and text. Parameters are given trough a $Settings array. To learn more about this please read the Format array guide.

Calling this function
Where :

FromNode is the ID of the starting node.
ToNode is the ID of the ending node.

You just have to specify one way of the relation : A -> B or B -> A.

Settings array - Tune up your link!

It is possible to customize the color, ticks and text of the link with this array.

Link color can be set with R, G, B.
Ticks width can be set with Ticks.
Link text can be set with Name.

Sample script

 /* pChart library inclusions */

 /* Create the pChart object */
 $myPicture = new pImage(300,300);

 /* Create the background */
 $myPicture->drawText(10,13,"pSpring - Draw spring charts",array("R"=>255,"G"=>255,"B"=>255));

 /* Define the charting area & stuff */

 /* Create the pSpring object */
 $SpringChart = new pSpring();

 /* Define the default free zone size */

 /* Create some nodes & relations */

 /* Define the nodes color */

 /* Customize some relations */

 /* Render the spring chart */
 $Result = $SpringChart->drawSpring($myPicture);

 /* Render the picture */
Last updated on 07/22/2010 
by Jean-Damien 
Linked resources
Community comments
  No comments have been posted yet.
© Copyrights
Components used on this web site : Famfamfam icons has been made by Mark James, Rounded corners lite has been coded by Cameron Cooke and Tim Hutchison, SyntaxHighlighter has been written by Alex Gorbatchev. pChart and this web site have been created by Jean-Damien POGOLOTTI. This documentation contains 185 pages and 56 comments. 415 users have registered. This page has been rendered in 0,01 seconds. Wiki revision 1.37.