Public
Edited
Jan 21, 2023
Insert cell
md`# SineWaves`

Insert cell
RiTa.rhymes("fog", {limit: 100})
Insert cell
RiTa = require('rita')
Insert cell
escape('\\a')
Insert cell
{
let o = {}
o["1.233"] = {x:1,y:1};
o["2.345"] = {x:2,y:2};
o["0.222"] = {x:3,y:3};
o["0.456"] = {x:4,y:4};
//let o = {"1.233": {x:1,y:1}, "2.345": {x:2,y:2}, "0.222": {x:3,y:3}, "0.456": {x:4,y:4}};
let values = [];
if (Object.keys) {
var keys = Object.keys(o);
for (var i = 0; i < keys.length; i++) {
values.push(o[keys[i]]);
}
return values;
}
// avoid hasOwnProperty for performance
for (var key in o)
values.push(o[key]);
return values;
}
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