swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.29k stars 1.15k forks source link

Use Html or Template on legend and label #627

Open schmitz85 opened 6 years ago

schmitz85 commented 6 years ago

i'm trying to use raw html on legend and in the label, but when i pass a img tag or a html especial carcter the componente scapes, even if i use the the label template.

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here

Current behavior Pass a html tag to legend or label and the tag appear like a string not like a a element

Expected behavior Pass a img tag to legend and appear a image on legend

georgewilde commented 6 years ago

I agree it would be good to be able to return HTML from the labelFormatting function and this is rendered as HTML and not as a string.