DefinitelyTyped/types/amcharts/Label.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

50 lines
882 B
TypeScript

/**
* Creates a label on the chart which can be placed anywhere, multiple can be assigned.
*/
export default class Label {
/**
* @Default 'left'
*/
align: string;
/**
* @Default 1
*/
alpha: number;
/**
* Specifies if label is bold or not.
*/
bold: boolean;
/**
* Color of a label
*/
color: string;
/**
* Unique id of a Label. You don't need to set it, unless you want to.
*/
id: string;
/**
* Rotation angle.
*/
rotation: number;
/**
* Text size
*/
size: number;
/**
* Text of a label
*/
text: string;
/**
* URL which will be access if user clicks on a label.
*/
url: string;
/**
* X position of a label.
*/
x: number | string;
/**
* y position of a label.
*/
y: number | string;
}