Fixes to google.visualization type definitions

Updates type definition for ChartArea and ChartLegend based on the
latest documentation.

Changes the draw overloads to use a union type.

Updates documentation links to the new domain.
This commit is contained in:
Gleb Mazovetskiy
2017-09-08 16:34:15 +01:00
parent ceebd7b2ed
commit bfe50f3146
2 changed files with 73 additions and 84 deletions

View File

@@ -96,7 +96,7 @@ function test_barChart() {
role: "annotation" },
2]);
var options = {
var options: google.visualization.BarChartOptions = {
title: "Density of Precious Metals, in g/cm^3",
width: 600,
height: 400,
@@ -139,7 +139,7 @@ function test_histogram() {
['Ultrasaurus (ultra lizard)', 30.5],
['Velociraptor (swift robber)', 1.8]]);
var options = {
var options: google.visualization.HistogramOptions = {
title: 'Lengths of dinosaurs, in meters',
legend: { position: 'none' }
};