selectedOptionRolledUp = {
if (!selectedOption) {
return "No trades for this contract. Please pick another...";
}
return d3
.rollups(selectedOption, d => flatMinute(d), d => +d.DT)
.sort((a, b) => d3.ascending(a, b))
.map(x => {
let obj = { ...x[1] };
obj.expiry = new Date(+x.expiry);
return obj;
});
}