
Untitled
By: a guest on
Aug 3rd, 2012 | syntax:
JavaScript | size: 0.56 KB | hits: 15 | expires: Never
function drawVisualization() {
// Create and populate the data table.
var data = google.visualization.arrayToDataTable([
['x', 'venido + en proceso', 'vendido'],
['2 Jul', 10, 2],
['9 Jul', 5, 3],
['16 Jul', 10, 5],
['23 Jul', 7, 3]
]);
// Create and draw the visualization.
new google.visualization.LineChart(document.getElementById('visualization')).
draw(data, {curveType: "lineal",
width: 800, height: 400,
vAxis: {maxValue: 10}}
);
}