Published
Edited
Aug 24, 2020
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
argentina = topojson.feature(filteredArg, filteredArg.objects.localidades)
Insert cell
J1_08_2020_ARG = d3.csvParse(await FileAttachment("fire_nrt_J1V-C2_6865.csv").text(), d3.autoType)
Insert cell
Insert cell
projection = d3.geoMercator()
.fitSize([width, height], argentina)
Insert cell
Insert cell
Insert cell
daily_J1_08_2020_ARG = d3.group(J1_08_2020_ARG, d => dateformat(new Date(+d.acq_date + 100000000)))
Insert cell
Insert cell
viewof day_2020 = Scrubber(daily_J1_08_2020_ARG.keys(), {delay: 300, loop: false})
Insert cell
daily_J1_08_2020_ARG.get(day_2020)
Insert cell
Insert cell
Insert cell
d3.extent(J1_08_2020_ARG, d => d.frp)
Insert cell
d3.extent(J1_08_2020_ARG, d => d.bright_ti4)
Insert cell
d3.extent(J1_08_2020_ARG, d => d.bright_ti5)
Insert cell
frpdata = J1_08_2020_ARG.map(d => d.frp)
Insert cell
Insert cell
import {chart as frp2020} with { frpdata as data, histoheight as height} from "@d3/histogram"
Insert cell
frp2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
frpColor = d3.scaleSequential(d3.interpolateReds)
.domain(d3.extent(frpdata))
Insert cell
frpColor(2)
Insert cell
Insert cell
Insert cell
t31Color = d3.scaleSequential(d3.interpolateMagma)
.domain(d3.extent(t31data))
Insert cell
Insert cell
Insert cell
viewof day2_2020 = Scrubber(daily_J1_08_2020_ARG.keys(), {delay: 300, loop: false})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
height = 500
Insert cell
numformat = d3.format(",d")
Insert cell
dateformat = d3.timeFormat("%Y-%m-%d")
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