How to add image in Highcharts Title and subtitles

I am trying to add images to the chart title using Highcharts.The image does not display. There is no script error. I also doubt whether highcharts support images in the header or not. Any help would be appreciated. Thank you in advance.

Here is the script for reference: http://jsfiddle.net/LHSey/123/

chart.setTitle({
            text: "Testing" + " " + "../images/appendImage.png "
        }, {
            text: "This is a test"
        });
+4
source share
1 answer

You need to install useHTMLin trueand paste your HTML image:

chart.setTitle({
    useHTML: true,
    text: "Testing" + " " + "<img src='../images/appendImage.png' alt='' />"
}, {
    text: "This is a test"
});

Working violin .

+6
source

Source: https://habr.com/ru/post/1570280/


All Articles