genxgeek
genxgeek

Reputation: 13357

How can I open a high chart in a modal window when the chart is clicked on?

New to high charts and javascript and want to know how to open up a new modal window of that chart when per a click event?

Upvotes: 0

Views: 1190

Answers (1)

Sebastian Bochan
Sebastian Bochan

Reputation: 37588

Take look at click event on chart.

 chart: {
        events: {
            click: function(event) {
                alert ('x: '+ event.xAxis[0].value +', y: '+
                      event.yAxis[0].value);
            }
        }        
    },

http://jsfiddle.net/vqCMA/

http://api.highcharts.com/highcharts#chart.events.click

Upvotes: 1

Related Questions