{
const brush = vl.selectInterval().encodings('x');
const opacity = vl.opacity().if(brush, vl.value(0.9)).value(0.1);
const overview = vl.markBar()
.encode(
vl.x().fieldQ('lPer100km')
.scale({rangeStep: null})
.axis({title: null, labelAngle: 0}),
vl.y().count().title(null),
opacity
)
.select(brush)
.height(50);
const detail = vl.markPoint()
.encode(
vl.x().fieldT('date'),
vl.y().fieldQ('pricePerL'),
vl.size().fieldQ('lPer100km'),
vl.tooltip().fieldT('date'),
opacity
);
return vl.data(fuel).vconcat(overview, detail).render();
}