SetDataLabelColor — Set the color for data labels




SetDataLabelColor sets the color which is used for data labels. This includes X axis data labels (for vertical plots) or Y axis data labels (for horizontal plots). It also includes Data Value Labels, which show the values of data points or bars within the plot area, unless overridden by SetDataValueLabelColor.



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


If SetDataLabelColor is not used, data labels are drawn using the general text color set with SetTextColor. If neither SetDataLabelColor nor SetTextColor 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 data label colors could only be set using SetTextColor, which also changed the color of other elements. 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.