Published
Edited
Sep 20, 2019
Importers
7 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Toggle({
header: 'Render',
value: true,
},
d => mutable ToggleOutput = d,
)
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
RangeSlider({
header: 'Selected years',
min: 1976,
max: 2018,
round: true,
width: 300
},
d => mutable RangeSliderOutput = d,
);
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
IntervalSlider({
header: 'Time period',
min: '01-01-1976',
max: '01-01-2018',
width: 300
},
d => mutable IntervalSliderOutput = d,
);
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Slider({
header: 'Iterations',
min: 0,
max: 50,
step: 2,
value: 10,
dualInput: true,
},
d => mutable SliderOutput = d,
);
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Slider2D({
header: 'Size',
xLabel: 'Width',
yLabel: 'Height',
xRange: [100, 500],
yRange: [20, 100],
value: [150, 50],
side: 200,
},
d => mutable Slider2DOutput = d,
);
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
NonlinearSlider({
header: 'Logarithmic growth',
width: 400,
height: 200,
min: .1, // Minimum x
max: 10 * Math.PI, // Maximum x
func: x => Math.log10(x),
color: 'OliveDrab',
});
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
AngleSlider({
header: 'Degrees',
type: 'rad', // [deg, rad]
diameter: 200,
color: 'FireBrick',
pointerSize: 9,
angle: Math.PI * .75,
offset: 0,
},
d => mutable AngleSliderOutput = d,
);
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ColorWheel({
header: 'Eye color',
id: '1',
diameter: 200,
color: [200, 0, 200],
output: 'rgb', // [rgb, hex, hsv]
},
d => mutable ColorSliderOutput = d,
);
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
RgbSlider({
header: 'Sky color',
width: 256,
color: [135, 206, 235],
output: 'hex', // [rgb, hex, hsv]
},
d => mutable RgbSliderOutput = d,
);
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
SimplexNoise({
size: 256,
scale: .7,
tileX: true,
tileY: false,
output: 'func', // [func, img]
},
d => mutable SimplexNoiseOutput = d,
);
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
CyclicValue({
header: 'Grayscale value',
id: '1', // Neccessary on multiple cyclic values. Page refresh needed on edit.
cycleTime: 3000, // ms
updates: 100, // per cycle
from: 0,
to: 255,
round: true,
},
d => mutable CyclicValueOutput = d,
);
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
HorizontalStack({
modules: [
ColorWheel(
{
header: 'Box color',
id: '2', // Neccessary on multiple color wheel.
diameter: 200,
color: [50, 150, 200],
output: 'hex', // [rgb, hex, hsv]
},
d => mutable HorizontalStackColor = d,
),
AngleSlider(
{
header: 'Rotation',
type: 'deg', // [deg, rad]
diameter: 200,
color: 'OliveDrab',
fill: false,
pointerSize: 9,
angle: 0,
offset: 0,
},
d => mutable HorizontalStackAngle = d,
),
],
padding: 10,
border: true,
});
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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