question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use HTML for labels

See original GitHub issue

In 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:closed
  • Created 9 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

18reactions
soniaCejascommented, May 31, 2016

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

0reactions
saad024commented, Oct 21, 2015

is that possible to add img tag?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found