google.visualization: Allow legend: "none" (#19089)

This commit is contained in:
Andy
2017-08-17 11:37:50 -07:00
committed by GitHub
parent ddc05855e5
commit a478257cfb
2 changed files with 6 additions and 8 deletions

View File

@@ -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'
};

View File

@@ -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