mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
google.visualization: Allow legend: "none" (#19089)
This commit is contained in:
@@ -68,7 +68,7 @@ function test_scatterChart() {
|
||||
[ 6.5, 7]
|
||||
]);
|
||||
|
||||
var options = {
|
||||
var options: google.visualization.ScatterChartOptions = {
|
||||
title: 'Age vs. Weight comparison',
|
||||
hAxis: {title: 'Age', minValue: 0, maxValue: 15},
|
||||
vAxis: {title: 'Weight', minValue: 0, maxValue: 15},
|
||||
@@ -344,7 +344,7 @@ function test_candlestickChart() {
|
||||
// Treat first row as data as well.
|
||||
], true);
|
||||
|
||||
var options = {
|
||||
var options: google.visualization.CandlestickChartOptions = {
|
||||
legend:'none'
|
||||
};
|
||||
|
||||
|
||||
10
types/google.visualization/index.d.ts
vendored
10
types/google.visualization/index.d.ts
vendored
@@ -538,8 +538,7 @@ declare namespace google {
|
||||
|
||||
// https://google-developers.appspot.com/chart/interactive/docs/gallery/scatterchart
|
||||
export class ScatterChart extends CoreChartBase {
|
||||
draw(data: DataTable, options?: ScatterChartOptions): void;
|
||||
draw(data: DataView, options?: ScatterChartOptions): void;
|
||||
draw(data: DataTable | DataView, options?: ScatterChartOptions): void;
|
||||
}
|
||||
|
||||
export interface ScatterChartOptions {
|
||||
@@ -560,7 +559,7 @@ declare namespace google {
|
||||
forceIFrame?: boolean;
|
||||
hAxis?: ChartAxis;
|
||||
height?: number;
|
||||
legend?: ChartLegend;
|
||||
legend?: ChartLegend | "none";
|
||||
lineWidth?: number;
|
||||
pointSize?: number;
|
||||
selectionMode?: string;
|
||||
@@ -1085,8 +1084,7 @@ declare namespace google {
|
||||
|
||||
// https://google-developers.appspot.com/chart/interactive/docs/gallery/candlestickchart
|
||||
export class CandlestickChart extends CoreChartBase {
|
||||
draw(data: DataTable, options: CandlestickChartOptions): void;
|
||||
draw(data: DataView, options: CandlestickChartOptions): void;
|
||||
draw(data: DataTable | DataView, options: CandlestickChartOptions): void;
|
||||
}
|
||||
|
||||
// https://google-developers.appspot.com/chart/interactive/docs/gallery/candlestickchart#Configuration_Options
|
||||
@@ -1105,7 +1103,7 @@ declare namespace google {
|
||||
fontName?: string;
|
||||
hAxis?: ChartAxis;
|
||||
height?: number;
|
||||
legend?: ChartLegend;
|
||||
legend?: ChartLegend | "none";
|
||||
orientation?: string;
|
||||
reverseCategories?: boolean;
|
||||
selectionMode?: string // single / multiple
|
||||
|
||||
Reference in New Issue
Block a user