Skip to content

Slice

Type class

Slice is an item of AmPieChart's chartData Array and holds all the information about the slice. When working with a pie chart, you do not create slices or change it's properties directly, instead you set array of data using dataProvider property. Consider properties of a Slice read-only - change values in chart's data provider if you need to.

Sources

This information about Slice is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.

Inheritance

Slice does not extend any other symbol.

Slice is not extended by any other symbol.

Properties

alpha

Type number

Opacity of a slice.

color

Type string

Color of a slice.

dataContext

Type object

Original object from data provider.

description

Type string

Slice description.

hidden

Type boolean

Specifies whether the slice is hidden

percents

Type number

Percent value of a slice.

pulled

Type boolean

Specifies whether the slice is pulled or not.

title

Type string

Slice title

url

Type string

Url of a slice

value

Type number

Value of a slice

visibleInLegend

Type boolean

specifies whether this slice has a legend entry

Methods

Slice does not have any methods.

Events

Slice does not have any events.