Public
Edited
Jan 3, 2023
Insert cell
Insert cell
import {dvHeatmap} from "@emfielduva/dvlib_layout"
Insert cell
d3 = require("d3@5")
Insert cell
Processed-data_Pacific_new.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Processed-data_AIS_new.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Processed-data_Caribbean_new.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
svg = d3.select("body")
.append("div").attr("id","caribbean_hm")
.append("svg")
.append("g")
Insert cell
FileAttachment("Processed-data_Caribbean_new.csv")
.csv()
.then((data)=>{
const groups = data.columns
const yes=0,
no=0,
toSomeExtent=0,
verylittle=0,
significantly=0,
notatall=0,
idontknow=0,
other=0;

for (let index = 0; index < data.length; ++index) {
const curr = data[index]
console.log(curr)
}
return groups
})
Insert cell
processedData_pacific_new
Insert cell
options = ({
boxsize:5,
paddingX:1,
colorScale:d3.scaleDiverging(),
startPos:{x:100,y:20},
rotateColumnTextDeg:-60})
Insert cell
htmlElm = d3.select("#heatmap");
Insert cell
pacific_heatmap = dvHeatmap(htmlElm, processedData_pacific_new)
Insert cell
pacific_heatmap
Insert cell
processedData_caribbean_new
Insert cell
processedData_ais_new
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