Slackbot
05/31/2023, 7:56 PMFil
05/31/2023, 8:08 PMFil
05/31/2023, 8:08 PMplotSVG = Plot.plot({
style: "font-family: 'comic sans ms';font-size: 14px;",
height: 400,
width: 400
})
pat wo
06/01/2023, 5:58 AMpat wo
06/01/2023, 6:27 AM<style>.plot-d6a7b5 {
display: block;
background: white;
height: auto;
height: intrinsic;
max-width: 100%;
}
.plot-d6a7b5 text,
.plot-d6a7b5 tspan {
white-space: pre;
}</style>
Is there a way of overriding this? Especially for text and tspan.Fil
06/01/2023, 6:33 AMfixSvg = Plot.plot({
height: 400,
width: 400,
margin: 0,
marks: [
() => svg`<style>.annotations text {font-size: 13px}`
]
})
pat wo
06/01/2023, 8:13 AMtext-anchor
style. Overriding it in the Observable Plot style field w. text-anchor: initial;
fixed it, the vanilla and plot SVGs look identical now! 🥳pat wo
06/01/2023, 9:04 AM