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

27 lines
1006 B
TypeScript

/**
* SerialDataItem holds all the information about each series.
* When working with a chart, you do not create SerialDataItem objects or change it's properties directly.
* Consider properties of a SerialDataItem read-only - change values in chart's data provider if you need to.
* When serial chart parses dataProvider, it generates "chartData" array.
* Objects of this array are SerialDataItem objects.
*/
export default class SerialDataItem {
/**
* You can access each GraphDataItem using this object.
* The data structure is: graphDataItem = serialDataItem.axes[axisId].graphs[graphId].
*/
axes: object;
/**
* category value. String if parseDates is false, Date if true.
*/
category: any;
/**
* Timestamp of a series date. Avalable only if parseDates property of CategoryAxis is set to true.
*/
time: number;
/**
* Coordinate (horizontal or vertical, depends on chart's rotate property) of the series.
*/
x: number;
}