HTML content for labels #695
stockiNail
started this conversation in
Ideas
Replies: 1 comment
-
Don't think it is a way this plugin should go. In my opinion if people really want it, it should be a separate plugin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pretty often the users ask to add HTML content on the chart by the annotation plugin.
Currently this is possible only using
svg
andforeignObject
elements creating an image and setting the content as image element.This workaround has got some constraints, like:
Starting from this status, I was thinking if make sense to define label content (in label, box and line annotations) as HTMLElement or HTML strings.
The element should be added in the DOM tree as child of the canvas and move to the right position at drawing time.
In this way, you can not use all options defined now for labels. For instance
drawTime
will be ignored because the label will be shown always on top of the canavs (drawTime: 'afterDraw'
).I'm not 100% convinced but this new feature.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions