DefinitelyTyped/types/amcharts/Slice.d.ts
Ricky Lippmann 538bee5326 amcharts linting fixed and splitted into class files (#22413)
* [FIX] make amcharts definitions work in strict mode

* [FIX] travis checks header

* clean some linting issues, export namespace, add version and provide small test

* [FIX] linting

* [MOD] split into several files for easier maintenance access

* [ADD] couple of tests
2018-01-05 11:06:28 -08:00

53 lines
1.2 KiB
TypeScript

/**
* 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.
*/
export default class Slice {
/**
* Opacity of a slice.
*/
alpha: number;
/**
* Color of a slice.
*/
color: string;
/**
* Original object from data provider.
*/
dataContext: object;
/**
* Slice description.
*/
description: string;
/**
* Specifies whether the slice is hidden
*/
hidden: boolean;
/**
* Percent value of a slice.
*/
percents: number;
/**
* Specifies whether the slice is pulled or not.
*/
pulled: boolean;
/**
* Slice title
*/
title: string;
/**
* Url of a slice
*/
url: string;
/**
* Value of a slice
*/
value: number;
/**
* specifies whether this slice has a legend entry
*/
visibleInLegend: boolean;
}