allCountyPlots = {
const buildChart = async c => html`<div class="chart-county">${await verticalCounty(c)}</div>`
const charts = Promise.all(counties.map(buildChart))
return html`
<div>
<style>
.chart-row {
display: flex;
flex-wrap: wrap;
}
.chart-county {
border: 1px solid #EAE3DA;
margin-right: 5px;
margin-bottom: 5px;""
}
.note {
font-family: Arial, sans-serif;
font-size: 0.8em;
line-height: 1.1em;
font-style: italic;
}
.legend {
font-family: Arial, sans-serif;
font-size: 0.8em;
}
</style>
${makeLegend('#2c7fb8','#CA532B')}
<div class="chart-row">
${await charts}
</div>
<div class="note">Data: Montana Dept. of Public Health and Human Services. Graphics: Eric Dietrich / MTFP</div>
</div>
`
}