ilya.stmn
ilya.stmn

Reputation: 1624

Adding text dynamically to point popups in highcharts.js

I've faced a problem with inclusion of text in popup window which appears in point , this is link to example. i want to place my own text from my array named myText at each point popup. Any suggestions?

link to jsFiddle

Upvotes: 1

Views: 1389

Answers (1)

Fred Bergman
Fred Bergman

Reputation: 2020

Try this as the formatter function:

tooltip: {
    formatter: function() {
        return '<b>'+ myText[this.point.x] +'</b>';
    }
}

jsFiddle here: http://jsfiddle.net/tGguS/2/

Upvotes: 3

Related Questions