We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 111cdf7 commit 5a2fcf2Copy full SHA for 5a2fcf2
src/marks/axis.js
@@ -488,6 +488,7 @@ function labelOptions(
488
fontFamily,
489
fontSize,
490
fontStyle,
491
+ fontVariant,
492
fontWeight,
493
monospace,
494
pointerEvents,
@@ -508,6 +509,7 @@ function labelOptions(
508
509
510
511
512
513
514
515
test/output/axisLabelFontVariant.svg
test/plots/axis-labels.ts
@@ -52,6 +52,13 @@ export async function axisLabelBothReverse() {
52
});
53
}
54
55
+export async function axisLabelFontVariant() {
56
+ return Plot.plot({
57
+ x: {domain: "abcde"},
58
+ marks: [Plot.axisX({label: "Letter", fontVariant: "small-caps"})]
59
+ });
60
+}
61
+
62
export async function axisLabelVaryingFill() {
63
return Plot.plot({
64
x: {domain: "ABCDEF"},
0 commit comments