Putting An Image In Each Category In Highcharts
I have this code: http://jsfiddle.net/waqLq62d/ and let me know how to put an image at the beginning of the category. so as it is shown in this picture. I do not know how, thank y
Solution 1:
To achieve this, you have to have to use the useHTML
property on the labels
object and set it to true.
Then, you have to use the format
property to inject an HTML image in your label.
Full working example here:
The code should look something like this:
labels: {
x: -5,
y: -20,
useHTML: true,
format: '<div style="position: absolute; left: 40px"> my label </div> <img style="height: 30px; width: 30px; margin-top: 10px" src="https://cdn2.iconfinder.com/data/icons/free-3d-printer-icon-set/512/Plastic_model.png"></img>'
}
Post a Comment for "Putting An Image In Each Category In Highcharts"