Published
Edited
Nov 23, 2020
Fork of Template
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
const svg = html`<svg id = "svg"></svg>`
const container = d3.select(svg)
container.attr("style","width: 600px; height: 300px; border:1px black solid")
const xScale = makeXAxis(container,[0,1],[30,570],270)
const yScale = makeYAxis(container,[0,1], [270,30],30)
const pathData = d3.line().x(d => xScale(d.x)).y(d => yScale(d.y))(probData)
const ROCPath = container.append("path")
.attr("stroke","black")
.attr("fill","none")
.attr("d",pathData)
return svg
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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