Published
Edited
Nov 23, 2021
Insert cell
viewof clicker = Inputs.range([-60, -30], {value: -60, step: 1, label: "Longitude"})
Insert cell
Plot.plot({
height: 640,
padding: 0.05,
grid: true,
round: true,
x: {
axis: "top",
tickFormat: "-",
ticks: [500],
//domain: [300,400],
//range: [300,400],
},
y: {
ticks: [-10],
//range: [-40,10],
// domain: [-40,10],
//tickFormat: "+",
},
color: {
type: "linear",
range: ['#fff','#FFE100'],
},
marks: [
Plot.cell(fires,
Plot.binY({X: "count"}, {
x: d => d.BRIGHTNESS / 10,
y: "LATITUDE",
fill: "CONFIDENCE",
// rx: 20 // uncomment for circles
})),
// Plot.text(simpsons, {
// x: "season",
// y: "number_in_season",
// text: d => d.imdb_rating?.toFixed(1),
// title: "title"
// })
]
})

Insert cell
penguins = FileAttachment("penguins.csv").csv({typed: true})
Insert cell
fires = FileAttachment("fire_nrt_M-C61_235694.csv").csv({typed: true})
Insert cell
filter = fires.filter(function (a){return [d => d.LATITUDE = 10]})
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