mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Added definitions for Annotation Chart
This commit is contained in:
43
google.visualization/google.visualization.d.ts
vendored
43
google.visualization/google.visualization.d.ts
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user