mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
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:
@@ -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' }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user