This is very nice, but as you might have noticed, the size of the text in the color legend hasn’t changed? Any idea if it’s possible to change it too? I can’t seem to find a solution.
One option, though less than ideal, is to use CSS instead of the Plot API directly. You can add a className property to the color field, which will let you target the legend. Note that the class name will have -ramp appended. You might also want to adjust the margin of the legend.
I often struggle with labels in Observable. Font size of titles and legend text etc. Hope this will be prioritized in coming releases of Plot. Data science folks are used to be able to get relatively fine grained control of these things.
+1 to @matvil’s comment. It would be really nice if there was more direct support for this. Currently I’m setting style: { fontSize: "16px" }, on the whole plot but it isn’t being applied to the legend which I find surprising. The fact you can use className here isn’t reflected in the typescript declarations, too.