Tema: Leer datos
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/12/2010, 08:37
jcros84
 
Fecha de Ingreso: junio-2010
Mensajes: 24
Antigüedad: 13 años, 11 meses
Puntos: 0
Leer datos

Buenas;

No tengo muchos conocimientos de java script pero si de programacion.

-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8"/>

<title>
Datos Almacen
</title>

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {packages: ['corechart']});
</script>

<script type="text/javascript">
function drawVisualization() {
// Create and populate the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Semanas');
data.addColumn('number', 'Almacen1');
data.addColumn('number', 'Almacen2');
data.addColumn('number', 'Almacen3');
data.addRow(["15", 80, 101, 12]);
data.addRow(["16", 79, 102, 12]);
data.addRow(["17", 69, 99, 36]);
data.addRow(["18", 76, 116, 39]);
data.addRow(["19", 42, 117, 27]);
data.addRow(["20", 87, 108, 51]);
data.addRow(["21", 88, 109, 38]);
data.addRow(["22", 49, 89, 29]);
data.addRow(["23", 36, 125, 36]);
data.addRow(["24", 68, 117, 26]);
data.addRow(["25", 77, 119, 48]);
data.addRow(["26", 46, 93, 41]);


// Create and draw the visualization.
new google.visualization.LineChart(document.getElement ById('visualization')).
draw(data, {curveType: "function",
width: 500, height: 400,
vAxis: {maxValue: 10}}
);
}


google.setOnLoadCallback(drawVisualization);
</script>
</head>
<body style="font-family: Arial;border: 0 none;">
<div id="visualization" style="width: 500px; height: 400px;"></div>
</body>
</html>


este es un Html que pinta un grafico con unos datos. Este html se lo mando a gente del trabajo y solo con tener internet pueden verlo. me gustaria que los data.addrow leyeran los datos de una BDAccess .

Que es lo que necesito? Al querer hacer esto necesito que este html este en un servidor web como creo? podria hacerlo como hasta ahora.

Gracias