Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 3rd, 2012  |  syntax: JavaScript  |  size: 0.56 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function drawVisualization() {
  2.   // Create and populate the data table.
  3.   var data = google.visualization.arrayToDataTable([
  4.     ['x', 'venido + en proceso', 'vendido'],
  5.     ['2 Jul',   10,       2],
  6.     ['9 Jul',   5,       3],
  7.     ['16 Jul',   10,       5],
  8.     ['23 Jul',   7,       3]
  9.   ]);
  10.  
  11.   // Create and draw the visualization.
  12.   new google.visualization.LineChart(document.getElementById('visualization')).
  13.       draw(data, {curveType: "lineal",
  14.                   width: 800, height: 400,
  15.                   vAxis: {maxValue: 10}}
  16.           );
  17. }