Public
Edited
Jan 1, 2024
Insert cell
Insert cell
{
const app = cm.app({
mode: "double",
renderer: await cm.terminal()
});

app
.data(cm.range(240, 0, Math.PI * 2))
.append(cm.group, {
x: app.prop("width") / 2,
y: app.prop("height") / 2
})
.append(cm.point, {
x: (t) => 10 * Math.cos(t) * Math.cos(t * 3),
y: (t) => 10 * Math.sin(t) * Math.cos(t * 3),
stroke: cm.cfb(cm.wch("🌟"))
});

return app.render().node();
}
Insert cell
cm = require("@charming-art/charming@0.0.6")
Insert cell
import { quote } from "@pearmini/charming-shared"
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