score:2

You can simply use $.get() or $.getJSON() method and in URL add parameter, for example:

$.getJSON('http://www.yourdomain.com/getpie.php?index=' + window.index, function(data) {        
    //create new chart with data from response
});

Then in your getpie.php you have access to this variable via:

$clickedindex = $_GET['index'];

The same way works it for Highcharts example lazy-loading and PHP file you can find here.


Related Articles