Published
Edited
Feb 13, 2018
Insert cell
Insert cell
Insert cell
hpccComms = require("@hpcc-js/comms")
Insert cell
Insert cell
function fetchECLRecord(url, logicalFilename) {
// Need proxy as observablehq is on https and our public server is not.
var proxyServer = "https://cors-anywhere.herokuapp.com/";
var connection = new hpccComms.Connection({ baseUrl: proxyServer + url + "/WsDFU"});
return connection.send("DFUInfo.json", {
Name: logicalFilename
}).then((response)=>{
return response.DFUInfoResponse.FileDetail.Ecl;
});
}
Insert cell
Insert cell
schema = fetchECLRecord("http://52.51.90.23:8010", "hpccvisualization::databreach")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more