Plot.plot({
width: 1200,
height: 299,
color: {
legend: true,
domain: ["0855.HK", "0371.HK"],
range: ["#FFD966", "#E0E0E1"]
},
grid: true,
facet: {
data,
x: "segment_type"
},
marks: [
Plot.line(data, {
x: "year",
y: "general revenue percentage",
stroke: "company",
strokeWidth: 3,
curve
}),
Plot.axisX({
tickSize: 0,
ticks: 3
}),
Plot.axisY({
tickSize: 0,
ticks: 6
})
]
})