viewof selectTimes = Inputs.select(-[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],+d3.range(0, 24),{ multiple: true, label: "Select times (control-click for multiple selections)" } )
// Type code here Plot.plot({ marks: [ Plot.dot(data, { x: "temp", y: "demand", fill: "lightgrey", fillOpacity: 0.2, r: 2 }), Plot.dot(data, {-filter: (d) => d.hour == selectTimes,+filter: (d) => selectTimes.includes(d.hour),x: "temp", y: "demand", fill: "hour", fillOpacity: 0.8, r: 3 }) ], marginLeft: 60 })