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 Query

More Query from same tag