Slice
class Slice extends ConfigObject (View source)
Properties
string | $color | The slice fill color. | |
string | $offset | Offset amount. | |
TextStyle | $textStyle | Slice text style. |
Methods
Builds the slice object with specified options.
Returns an array representation of the object.
Same as toArray, but without the class name as a key to being multi-dimension.
Details
at line 54
mixed
__construct(
array $config = array())
Builds the slice object with specified options.
in
ConfigObject at line 93
array
toArray(
string $keyName = null)
Returns an array representation of the object.
If passed a label, then the array will be returned with the label as the key.
Called with no label returns an array with the classname as the key.
in
ConfigObject at line 115
array
getValues()
Same as toArray, but without the class name as a key to being multi-dimension.
at line 66
Slice
color(
string $color)
The color to use for this slice. Specify a valid HTML color string.
at line 89
Slice
offset(
float $offset)
How far to separate the slice from the rest of the pie.
from 0.0 (not at all) to 1.0 (the pie's radius).
at line 110
Slice
textStyle(
TextStyle $textStyle)
Overrides the global pieSliceTextSlice for this slice.