Published
Edited
Jan 27, 2022
38 forks
2 stars
Insert cell
Insert cell
Insert cell
raw = {
const scsv = d3.dsvFormat(",") // Important to define the separator of your CSV file
return scsv.parse(await FileAttachment('FILENAME').text())
}
Insert cell
teams_stats = {

const resultset = [];
// TODO: Process the dataset and output the result in the resultset variable following the format shown in the homework description.
return resultset;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Scale 1
// scale1 =
Insert cell
// Scale 2
// scale2 =
Insert cell
// Scale 3
// scale3 =
Insert cell
// Scale n
// scalen =
Insert cell
Insert cell
Insert cell
{

// Create SVG
// const svg =

// Create axes groups and append axes
// svg.append("g")...
// svg.append("g")...

// render your visualization by calling render_data
// render_data(svgref, data);
// return svg.node();
}
Insert cell
Insert cell
Insert cell
render_data = (group, data) => {

// render elements. Remember to use the Data Join
}
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