Information on this website refers to a deprecated product, and is provided only for historical reference. Please use the Version Switcher above to select an appropriate documentation website for the product you are using.

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.

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.

Adapters

Slice does not have any adapters.