0
votes

I'm not sure if Stackoverflow is the right place for my question, but I couldn't find a more suitable place within the stackexchange network.

My question:
I'm developing a responsive website which needs to show some charts. There are many great chart libraries out there but I could't find one which fits my special need:

Does anyone know a chart library which is capable of displaying a graphical image legend instead of a textual legend?

Example:
enter image description here

Instead of a text I want to display an image (like the smiley)

Thanks in advance for your help.

Best regards
ninsky

1
When in doubt: What topics can I ask about here? and What types of questions should I avoid asking? You might look at softwarerecs.stackexchange.com (but check their equivalents to those pages here and here).T.J. Crowder
It's possible to do jsfiddle.net/vrwjfg9z/2676llamerr

1 Answers

0
votes

I took first one google showed me and it's possible to do with it:

http://www.chartjs.org/docs/#chart-configuration-legend-configuration

updated config with img and it worked

{
    value: 61,
    color: "#09355C",
    label: "Label 1 <img src='https://blog.codinghorror.com/content/images/uploads/2007/03/6a0120a85dcdae970b012877700749970c-pi.png'>"
}

http://jsfiddle.net/vrwjfg9z/2676/