score:0

Accepted answer

you can use window.location.replace() to redirect to another page, and pass the parameters in a query string, like so:

onclick: function(c,chart_instances){
    try{
        ev = chart_instances[0];
        window.location.replace("./yournextpage?label=" + this.data.labels[ev._index] + "&value=" + this.data.datasets.data[ev._index]);

    } catch (e){
        //ignore misclicks
    }
}

refer to this question on instructions to retrieve the data from a query string in your next page.


Related Query

More Query from same tag