Skip to content

How to declare HTML for charts' labels? #411

@davidbgk

Description

@davidbgk

Expected Behaviour

I would like to be able to define this: labels: ['<a>2023-04-27</a>','<a>2023-04-27</a>'] (with real links but you get the point) and having links rendered as labels of the axis.

Actual Behaviour

Links are escaped before rendering:

Capture d’écran, le 2023-05-01 à 15 42 00

You can see in devtools that the link part is considered as text (vs. HTML) within the svg text element:

Capture d’écran, le 2023-05-01 à 15 43 14

Frappé Charts version: 1.6.2

Metadata

Metadata

Assignees

No one assigned

    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