Use HTML for labels
See original GitHub issueIn inspecting the code, it appears you are using fillText function on the canvas for the labels, so HTML is not going to be easy to use for the axis labels. I need to be able to use an icon instead of text for the label, (i.e. using bootstrap: <i class="icon icon-twitter"></i>
)
Any idea if even remotely possibly?
Issue Analytics
- State:
- Created 9 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
HTML label tag - W3Schools
HTML <label> Tag · Definition and Usage. The <label> tag defines a label for several elements: · Tips and Notes. Tip: The for...
Read more >The Label element - HTML: HyperText Markup Language | MDN
To explicitly associate a <label> element with an <input> element, you first need to add the id attribute to the <input> element. Next,...
Read more >HTML <label> Tag - W3docs
The <label> tag defines a text label for the <input> tag. The label is a normal text, by clicking which, the user can...
Read more >What Does In HTML: Easy Tutorial With Code Example »
The <label> element is used to associate a text label with a form <input> field. The label is used to tell users the...
Read more >HTML Label – Label Tag Example - freeCodeCamp
You use the HTML <label> tag to caption form controls. <label> is an inline element – meaning it doesn't take up an entire...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s posibble use HTML for labels in the new version 2.1.4?? I need use “fontello”. I have to do something like this:
return "<i class='icon-ok-circled2'></i>" + chart.data.labels[tooltipItem[0].index];
Thanks
is that possible to add img tag?