Published
Edited
Apr 23, 2019
2 stars
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
function generate_points(str) {
const result = [];
const digits_arr = str.split(".").join("").split('').map(x => parseInt(x));
for (let i=0; i<digits_arr.length; i++){
result.push({'x': (i*20), 'y': y(digits_arr[i])})
}
return result;
}
Insert cell
Insert cell
yAxis = function(g) {
g
// .attr("transform", `translate(0,70)`)
.call(
d3.axisRight(y)
.tickSize(990)
);
}
Insert cell
import {slider} from "@jashkenas/inputs"
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