Published
Edited
Mar 7, 2018
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
opioidMortalityDataForYear = allData.filter(function (datum) {
return +datum.age_group_id === 27 // age standardized only
&& +datum.measure_id === 1 // only Deaths
&& +datum.sex_id === 3 // only both sexes
&& +datum.year_id === restrictByYear; // restrict by the specified year
})
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