Re: Assign colors to series
Hi,
Just added the getSeriePalette() method to the pData class. (getPalette was already defined for internal use). Using it you can now copy the palette of one serie and replace it to another one :
Code:
$MyData->setPalette("Probe 2",$MyData->getSeriePalette("Probe 1"));
I've also modified the setPalette() method so it can accept an array of series as 1st argument :
Code:
$MyData->setPalette(array("Probe 2","Probe 3"),$MyData->getSeriePalette("Probe 1"));
This change will be published in the 2.1.1 subversion.
--Thanks for your suggestion ;o)
Kind regards,
JD.