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

16 lines
728 B
TypeScript

/**
* Trend lines are straight lines indicating trends, might also be used for some different purposes.
* Can be used by Serial and XY charts.
* To add/remove trend line, use chart.addTrendLine(trendLine)/chart.removeTrendLine(trendLine) methods
* or simply pass array of trend lines: chart.trendLines = [trendLine1, trendLine2].
* @example
* let trendLine = new AmCharts.TrendLine();
* trendLine.initialDate = new Date(2012, 0, 2, 12); // 12 is hour - to start trend line in the middle of the day
* trendLine.finalDate = new Date(2012, 0, 11, 12);
* trendLine.initialValue = 10;
* trendLine.finalValue = 19;
* trendLine.lineColor = "#CC0000";
* chart.addTrendLine(trendLine);
*/
export default class TrendLine { }