Skip to content

Issue with font size scaling for labels #24

@HasflarSonto

Description

@HasflarSonto

when generating captions, changes to the font size in the spec doesn't reflect in the final rendering. This makes it so that the following two specs generate the exact same result

let caption = c.text(attr, {x: mark.get(attr, ["x", "width"], (d) => d.x + d.width/2), y: 0, text: attr.charAt(0).toUpperCase() + attr.slice(1), fontsize:"100px"}, {textAnchor: "bottom"})

let caption = c.text(attr, {x: mark.get(attr, ["x", "width"], (d) => d.x + d.width/2), y: 0, text: attr.charAt(0).toUpperCase() + attr.slice(1), fontsize:"10px"}, {textAnchor: "bottom"})

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions