viewof selectedCompany = html`<select>
${uniqueCompanies.map(company => html`<option value="${company}">${company}</option>`)}
</select>`
maxVolume = d3.max(filteredData, d => d.volume)
formattedMaxVolume = d3.format(",")(maxVolume)
maxVolumeRow = filteredData.find(d => d.volume === maxVolume)
maxVolumeTime = d3.timeFormat("%B %d, %Y")(maxVolumeRow.date)
volumeCard = html`
<p>${formattedMaxVolume} on ${maxVolumeTime}</p>`
maxOpen = d3.max(filteredData, d => d.open)
formattedMaxOpen = d3.format("$.2f")(maxOpen)
maxOpenRow = filteredData.find(d => d.open === maxOpen)
maxOpenTime = d3.timeFormat("%B %d, %Y")(maxOpenRow.date)
openCard = html`
<p>${formattedMaxOpen} on ${maxOpenTime}</p>`
Data: kaggle.com | Design: Nicola Rennie