![]() |
Language Reference » Dataset functions » setScatterSerieColor
|
|
Latest updates
Toolbox
Google AdSense
|
setScatterSerieColor - Define the color of a scatter serie This function allows you to redefine the color of the given scatter serie. It is possible to set extra parameters with the $Format array. To learn more about this please read the Format array guide. Calling this function
setScatterSerieColor($ID,$Format) Where : ID is the unique ID of the scatter serie to modify.
Format is an optional parameter array containing the new color. Customisation array - Extra parameters It is possible to give extra parameters : The color can be set with R, G, B.
The alpha transparency factor can be set with Alpha. 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"); /* Re-define the scatter serie color */ $MyData->setScatterSerieColor(0,array("R"=>255,"G"=>255,"B"=>255)); Scatter serie 0 will be drawn in white (255,255,255).
© 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. 413 users have registered.
This page has been rendered in 0,01 seconds. Wiki revision 1.37.
|