Skip to content

[Feature] add an option to axis.label.style.textAlign to make all the labels align in the center of the whole axis component #380

@da730

Description

@da730

What problem does this feature solve?

While label.style.textAlign support 'center' currently, the baseline of the text is not in the middle of the whole axis component:
img_v2_7dd56c77-39f5-401a-9df4-8b4fa9d4deeg
We need a new option to make the baseline of the align in the middle of the axis (0.5*width of the axis):
img_v2_e2371cdc-605a-45d0-a4a2-4dcfc4bc8e3g

What does the proposed API look like?

label.style.textAlign='axisCenter'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions