Public
Edited
Apr 21, 2023
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
treemapStyles = htl.html`<style>
#treemapContainer {
width: 100%;
display: block;
background-color: whitesmoke;
border-bottom: 1px solid magenta;
}
#treemap {
display: flex;
}

@media (min-width: 600px) {
#treemapContainer {
width: 50%;
border-bottom: none;
border-right: 1px solid magenta;
}
}
</style>`
Insert cell
Insert cell
Insert cell
Insert cell
mapStyles = htl.html`<style>
#mapContainer {
width: 100%;
display: block;
background-color: teal;
border-top: 1px solid magenta;
}

#geomap {
display: flex;
}

@media (min-width: 600px) {
#mapContainer {
width: 50%;
border-top: none;
border-left: 1px solid magenta;
}
}
</style>`
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
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
tooltipTemplate = html`<div id="tooltipContainer" class="tooltip-container">
${tooltipStyles}
<div class="tooltip tooltip-${tooltipId}">
<div class="tooltip-contents">
<div class="tooltip-title"></div>
<div class="flex-group">
<div class="tooltip-photo"></div>
<div class="tooltip-text">
<div class="group1"></div>
<hr/>
<div class="group2"></div>
</div>
</div>
<div class="tooltip-attribution"></div>
</div>
</div>
</div>`
Insert cell
Insert cell
tooltipStyles = htl.html`<style>
div.tooltip-container {
position: relative;
}

div.tooltip-${tooltipId} {
box-sizing: border-box;
position: absolute;
display: none;
bottom: 0;
right: -100000000px;
padding: 8px 12px;
font-family: 'Montserrat';
font-size: 12px;
line-height: 18px;
color: dimgray;
background-color: white;
border: 1px solid #333;
border-radius: 4px;
pointer-events: none;
z-index: 1;
width: 100%;
}

div.tooltip-${tooltipId} p {
margin: 0;
}

div.tooltip-${tooltipId} .tooltip-contents .flex-group {
display: flex;
align-items: flex-start;
justify-content: space-between;
}

div.tooltip-${tooltipId} .tooltip-contents .tooltip-photo {
padding-right: 12px;
/* flex-shrink: 0;
max-width: 45%; */
padding-top: 4px;
}

div.tooltip-${tooltipId} .tooltip-contents .tooltip-photo img {
border-radius: 4px;
max-width: 100%;
}

div.tooltip-${tooltipId} .tooltip-contents .tooltip-attribution {
white-space: nowrap;
font-style: italic;
}

div.tooltip-${tooltipId} .tooltip-contents .tooltip-text {
flex-shrink: 0;
}

div.tooltip-${tooltipId} .tooltip-contents hr {
margin: 0;
padding: 8px 0;
}
</style>`
Insert cell
Insert cell
inatObservationsStatic = FileAttachment("inatObservations-static.json").json()
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
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