Hola, he tenido problemas con un tablero de instrumentos y no puedo obtener ningún dato de un archivo CSV externo para representar ningún gráfico. Cuando coloco una etiqueta de alerta, se repite en el servidor HTTP node.js.
Codigo html para llamar a AJAX
/======UPDATE var updateChart = function () { $.ajax({ type: "GET", url: "podData.csv", dataType: "text", success: function(csv) { var dataPoints = csvLines = points = []; csvLines = csv.split(/[\r?\n|\r|\n]+/); UD=csvLines.length -2; points = csvLines[UD].split(","); } });HTTP: NodoJS
var http = require('http'); var fs = require('fs'); http.createServer(function (req, res) { fs.readFile('./DFH_COP_dashboard_v1.html', function(err, data) { res.writeHead(200, {'Content-Type': 'text/html'}); res.write(data); res.end(); }); }).listen(8080);