Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/marks/axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ function labelOptions(
fontFamily,
fontSize,
fontStyle,
fontVariant,
fontWeight,
monospace,
pointerEvents,
Expand All @@ -508,6 +509,7 @@ function labelOptions(
fontFamily,
fontSize,
fontStyle,
fontVariant,
fontWeight,
monospace,
pointerEvents,
Expand Down
33 changes: 33 additions & 0 deletions test/output/axisLabelFontVariant.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/plots/axis-labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ export async function axisLabelBothReverse() {
});
}

export async function axisLabelFontVariant() {
return Plot.plot({
x: {domain: "abcde"},
marks: [Plot.axisX({label: "Letter", fontVariant: "small-caps"})]
});
}

export async function axisLabelVaryingFill() {
return Plot.plot({
x: {domain: "ABCDEF"},
Expand Down