An array containing the default colors for the chart's series. When all colors are used, new colors are pulled from the start again.
Defaults to: array('#4572A7', '#AA4643', '#89A54E', '#80699B', '#3D96AE', '#DB843D', '#92A8CD', '#A47D7C', '#B5CA92')

The method used:

Parameters:

  • array $avalue: values to be set for the colors

API Tags:
Return: instance
Access: public

$chart = new jqChart(); $onclick = "function(event) { alert ('x: '+ event.xAxis[0].value +', y: '+ event.yAxis[0].value); }"; $chart->setColors(array('#4572A7', '#AA4643', '#89A54E', '#80699B', '#3D96AE', '#DB843D', '#92A8CD', '#A47D7C', '#B5CA92')); ...