Login Register Wishes Forum About
Language Reference » Dataset functions » setSerieTicks
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
setSerieTicks - Draw series with dotted lines

This function allows you to draw your series with ticks instead of solid lines.

Calling this function

Where :

Series is the name of the serie. (or an array of names)
Width is the width of the ticks. Setting this value to 0 will draw solid lines.

Sample script #1

 /* Create the pData object */
 $MyData = new pData(); 

 /* Populate some data */
 $MyData->addPoints(array(24,25,26,25,25),"My Serie 1");

 /* Use ticks while drawing "My Serie 1" */
 $MyData->setSerieTicks("My Serie 1",4);

"My Serie 1" will be draw with dotted lines.

Sample script #2

 /* Build a dataset */
 $MyData = new pData();  
 $MyData->addPoints(array(-4,VOID,VOID,12,8,3),"Probe 1");
 $MyData->addPoints(array(3,12,15,8,5,-5),"Probe 2");
 $MyData->addPoints(array(2,7,5,18,19,22),"Probe 3");
 $MyData->setSerieTicks("Probe 2",4);

 /* Create the 1st chart*/

 /* Create the 2nd chart */

 /* Write the legend*/
Last updated on 12/25/2010 
by Jean-Damien 
Linked resources
  There is no linked topic yet.
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.