Added definitions for Annotation Chart

This commit is contained in:
Max
2015-02-27 17:13:37 -05:00
parent 3882d337bb
commit dcf8a7b14e

View File

@@ -722,6 +722,49 @@ declare module google {
width?: number;
}
//#endregion
//#region AnnotationChart
// https://developers.google.com/chart/interactive/docs/gallery/annotationchart
export class AnnotationChart extends CoreChartBase
{
draw(data: DataTable, options: AnnotationChartOptions): void;
draw(data: DataView, options: AnnotationChartOptions): void;
setVisibleChartRange(start: Date, end: Date): void;
getVisibleChartRange(): {start: Date; end: Date };
hideDataColumns(columnIndexes: number | number[]): void;
showDataColumns(columnIndexes: number | number[]): void;
}
// https://developers.google.com/chart/interactive/docs/gallery/annotationchart#Configuration_Options
export interface AnnotationChartOptions
{
allowHtml?: boolean;
allValuesSuffix?: string;
annotationsWidth?: number;
colors?: string[];
dateFormat?: string;
displayAnnotations?: boolean;
displayAnnotationsFilter?: boolean;
displayDateBarSeparator?: boolean;
displayExactValues?: boolean;
displayLegendDots?: boolean;
displayLegendValues?: boolean;
displayRangeSelector?: boolean;
displayZoomButtons?: boolean;
fill?: number;
legendPosition?: string;
max?: number;
min?: number;
numberFormats?: any;
scaleColumns?: number[];
scaleFormat?: string;
scaleType?: string;
thickness?: number;
zoomEndTime?: Date;
zoomStartTime?: Date;
}
//#endregion
//#region SteppedAreaChart