Skip to content

textAnchor #43

Open
Open
@sirrice

Description

@sirrice

When we apply an svg attribute in the vis mappings like textAnchor and set it to a constant value,

See the new paralle coordinates example in nest_func branch for example.

let vattlabels = canvas.text(attrstable, {
   x: vatt.get("attr", ["x", "width"], (d)=>d.x+d.width/2),
   y: vatt.get("attr", "y", ({y})=>y+15),  
   textAnchor:"middle", text: "attr", fontSize: "20pt"})

When this is rendered, the text-anchor attribute is added to the container and not the individual text nodes.

Image

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