m hadadi
m hadadi

Reputation: 949

how can i add popup to flags in highchart?

How can I add popup to flag`s of highchart ? for example for this http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/stock/plotoptions/flags/ when I click on A flag the popup appear How can i add that

 type: 'flags',
            data: [{
                x: Date.UTC(2011, 1, 14),
                title: 'A',
                text: 'Shape: "squarepin"'
            }

Upvotes: 0

Views: 300

Answers (1)

Paweł Fus
Paweł Fus

Reputation: 45079

Just add click events to your flag series, for example:

        point: {
            events: {
                click: function() {
                     alert("clicked!");   
                }
            }
        }

And example here. Just click on any "B" flag.

Upvotes: 1

Related Questions