Hi there,
I am unable to change the font weight in this line plot with the available parameters.
Plot.plot({
style: "overflow: visible;",
color: {legend: true},
y: {grid: true},
marks: [
Plot.ruleY([0]),
Plot.line(weekly_mileage, {x: "week", y: "total_distance", stroke: "plan"}),
Plot.text(weekly_mileage, {x: "week", y: "total_distance", stroke: "plan", text: (d) => `${d.pct_change}`, dy: -3, lineAnchor: "bottom", fontWeight:0.1, fontSize:10})
],
y: {label: "Distance (km)"}
});
I am wondering if I am possibly plotting the text layered many times by accident, making it look thicker?
I want to text to look the same as what is in the documentation - Text mark | Observable Plot
Any ideas?
Thanks!