Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to declare HTML for charts' labels? #411

Open
davidbgk opened this issue May 1, 2023 · 1 comment
Open

How to declare HTML for charts' labels? #411

davidbgk opened this issue May 1, 2023 · 1 comment

Comments

@davidbgk
Copy link

davidbgk commented May 1, 2023

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

@davidbgk
Copy link
Author

davidbgk commented May 1, 2023

Note that the link is rendered as HTML within the tooltip but you cannot click it because the tooltip vanishes when you move from the point of the graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant