Plot.plot({
width: 1800, // or a dynamic value based on `width` variable
height: 1200,
color: {legend: true},
x: {
domain: [0, 500]
},
height: 100,
marks: [
Plot.dotX(datascaled, {filter: d => d.type == "data points" || d.type == "max value", x: "data", stroke: "type", strokeWidth: "width", symbol: "symbol", r: "radius"}),
Plot.tickX(datascaled, {filter: d => d.type == "mean" || d.type == "median", x: "data", stroke: "type", strokeWidth: "width", symbol: "symbol"}),
]
})