Contents
Login Register Wishes Forum About
Language Reference » Dataset functions » setScatterSerieWeight
Help topics
Latest updates
4574d  replaceImageMapTitle
4574d  replaceImageMapValues
4574d  createFunctionSerie
4574d  setAbsicssaPosition
4574d  negateValues
Toolbox
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
setScatterSerieWeight - Define the weight parameter of a scatter serie

This function allows you to define the weight parameter of a scatter serie. This will be reflected in the legend box and by the line and spline charting functions.

Calling this function
setScatterSerieWeight($ID,$Weight=0)

Where :

ID is the unique ID of the scatter serie to modify.
Weight is the weight of the ticks.


Sample script

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

 /* Create the two data series that will be used for the scatter coordinates */
 $MyData->addPoints(array(1,2,3,4),"My Serie X");
 $MyData->addPoints(array(4,3,2,1),"My Serie Y");

 /* Associate the two series to create a scatter serie */
 $MyData->setScatterSerie("My Serie X","My Serie Y");

 /* Draw the scatter serie 0 with a weight of 2px */
 $MyData->setScatterSerieTicks(0,2);

Scatter serie 0 will be drawn with a weight of 2px.
Last updated on 01/26/2011 
by Jean-Damien 
Linked resources
  There is no linked topic yet.
Community comments
Message from torvaldur on 14/05/2011
Assuming the Sample script is wrong (says setScatterSerieTicks and not setScatterSerieWeight), I can‘t get this to work:
$myData->setScatterSerie("Probe 1","Probe 3",0);
$myData->setScatterSerieDescription(0,"Serie 1");
$myData->setScatterSerieColor(0,array("R"=>0,"G"=>0,"B"=>0));
$myData->setScatterSerieWeight(0,5);

The last row doesn‘t affect the chart at all.
© 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,21 seconds. Wiki revision 1.37.