Skip to content

Commit 041a2e5

Browse files
authored
fix font-variant for axis labels (#912)
1 parent f00e7cc commit 041a2e5

File tree

112 files changed

+112
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+112
-111
lines changed

src/axis.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export class AxisY {
174174
: gridY(offsetSign * (marginLeft + marginRight - width)))
175175
.call(!label ? () => {} : g => g.append("text")
176176
.attr("fill", "currentColor")
177+
.attr("font-variant", fontVariant == null ? null : "normal")
177178
.attr("transform", `translate(${labelOffset * offsetSign},${
178179
labelAnchor === "center" ? (height + marginTop - marginBottom) / 2
179180
: labelAnchor === "bottom" ? height - marginBottom

test/output/aaplBollinger.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/aaplChangeVolume.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/aaplClose.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/aaplCloseUntyped.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/aaplMonthly.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/aaplVolume.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/aaplVolumeRect.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/anscombeQuartet.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/athletesBinsColors.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)