mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge remote-tracking branch 'upstream/master' into merge_7_25
This commit is contained in:
@@ -488,3 +488,25 @@ function test_formatter_PatternFormat() {
|
||||
|
||||
table.draw(view, { allowHtml: true, showRowNumber: true, width: '100%', height: '100%' });
|
||||
}
|
||||
|
||||
function test_ChartsLoad() {
|
||||
google.charts.load('current', {packages: ['corechart', 'table', 'sankey']});
|
||||
|
||||
function drawChart() {
|
||||
// Define the chart to be drawn.
|
||||
var data = new google.visualization.DataTable();
|
||||
data.addColumn('string', 'Element');
|
||||
data.addColumn('number', 'Percentage');
|
||||
data.addRows([
|
||||
['Nitrogen', 0.78],
|
||||
['Oxygen', 0.21],
|
||||
['Other', 0.01]
|
||||
]);
|
||||
|
||||
// Instantiate and draw the chart.
|
||||
var chart = new google.visualization.PieChart(document.getElementById('myPieChart'));
|
||||
chart.draw(data, null);
|
||||
}
|
||||
|
||||
google.charts.setOnLoadCallback(drawChart);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user