SetPieLabelColor
Prev | PHPlot Function Reference | Next

## SetPieLabelColor

SetPieLabelColor — Set the color for pie chart data labels

## Synopsis

    $plot->SetPieLabelColor($color)

## Description

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

## Parameters

`$color`

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

## Notes

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.

## History

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.

Prev | Up | Next
SetPieDirection | Home | SetPieLabelType