SetGridColor — Set the color used for the axes and borders
$plot->SetGridColor($color
)
SetGridColor
sets the color used for the X and Y
axes, the plot border, and the legend border.
It also sets the default color for pie chart data labels.
The default color is black.
This doesn't actually set the color used by the grid; for that see SetLightGridColor. We have no idea why this is so.
For pie charts drawn with no shading, this also sets the color of the pie segment borders.
The color used for pie chart data labels is set with
SetPieLabelColor (starting with PHPlot-5.7.0), with
SetGridColor
providing a default color.