{
const a = vl.markLine({point: true})
.data(g)
.encode(
vl.y().fieldQ("Utilization").title("Frontend Utilization").axis({"titleColor": "steelblue"}),
vl.x().fieldQ("Load Rate").title("Load (req/sec)")
)
const b = vl.markLine({color: "green", point: true})
.data(g)
.transform(
vl.filter('datum["Load Rate"] <= 8000')
)
.encode(
vl.y().fieldQ("Client Response Time (ms)").axis({"titleColor": "green"}),
vl.x().fieldQ("Load Rate").scale({"domain": [0, 9000]})
)
const rule = vl.markRule({strokeDash: [4, 2]})
.data(g)
.encode(
vl.y().datum(1).scale({domain: [0.0, 1.4]}).axis({labels:false, ticks:false, grid:false})
)
return vl.layer(a, b, rule)
.resolve({"scale": {"y": "independent"}})
.title("Frontend Utilization and Client Response Time for different Load")
.width(400)
.height(300)
.render()
}