SetPieLabelColor — Set the color for pie chart data labels




SetPieLabelColor sets the color which is used for data labels on pie charts.



Color value to use. See Section 3.5, “Colors” for more on color values.


If SetPieLabelColor is not used, pie chart data labels are drawn using the text color set with SetGridColor. If neither SetPieLabelColor nor SetGridColor is used, the default color is black.

See also Section 3.6, “Labels” for information about different label types.

PHPlot has a deprecated function called SetLabelColor. Do not use this function. It does not set the color used for labels.


This function was added in PHPlot-5.7.0. In earlier releases, the pie chart data labels used the color set with SetGridColor, which also sets the color of other elements. Although it would have made more sense to use SetDataLabelColor to set the color for pie chart data labels when that function was introduced, it would have not have been backward compatible, since the default color comes from a different source. Logo

This version of the manual was produced for the PHPlot Sourceforge project web service site, which requires the logo on each page.

To download a logo-free copy of the manual, see the PHPlot project downloads area.