Published
Edited
Apr 11, 2022
1 fork
1 star
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
styles = html`
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap" rel="stylesheet">
<style>
#map-update {
text-align: center;
}
.map-tooltip, #map-update {
font-family: 'Lato', sans-serif;
}
// Div resets, to override-Civio CSS styles
.map-tooltip * {
margin: 0;
padding: 0;
}

.map-tooltip {
pointer-events: none;
display: block;
position: absolute;
z-index: 300;
visibility: hidden;
width: 500px;
max-width: 320px;
margin: 0;
padding: 0.4rem;

background: rgba(255, 255, 255, 0.9);
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);

font-family: 'Lato', sans-serif;
font-size: 11px;
text-align: center;
}

.map-tooltip ul {
text-align: left;
}

.map-tooltip > h3 {
font-weight: bold;
width: 100px;
display: block;
margin: auto;
padding: 2px;
font-size: 11px;
}

.map-tooltip .close-btn {
display: none;
cursor: pointer;
pointer-events: auto;
position: absolute;
right: 10px;
top: 5px;
}

// We need to specify margins here to override-Civio CSS styles
.map-tooltip p {
margin-top: 5px;
margin-bottom: 0;
}
.map-tooltip li {
margin-top: 0;
margin-bottom: 0;
}
.map-tooltip .pcrText{
font-weight: bold;
}

#tooltip-China .borderText p {
display: none;
}

.footer {
font-size: 12px;
opacity:0.8;
margin-top: 0.5rem;
}

@media only screen and (max-width: 600px) {
.map-tooltip {
overflow-y: scroll;
pointer-events: auto;
max-height: 400px;
overflow: auto;
}
.map-tooltip .close-btn {
display: inline;
}
}

</style>
`
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