Public
Edited
Oct 25, 2023
Paused
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
example(heights.medium, (rac, shared) => {
let center = rac.Point.canvasCenter()
rac.Stroke(8).apply() // make all following strokes thicker

let originColor = shared.palette.polishedPine
let targetColor = shared.palette.pumpkin

let totalRays = 40
for (let index = 0; index <= totalRays; index++) {
let ratio = index/totalRays

let color = originColor.linearTransition(ratio, targetColor)
let angle = ratio * 0.88 + 0.06 + 0.25
center.ray(angle)
.translateToDistance(20)
.draw(color.stroke())
}
rac.Point.zero.text('Example with shared styles')
.withPaddings(10)
.draw(shared.markText)
})
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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more