Like this picture. I want to add 3 urls. (URL) => [A,B,C] When the user clicks on one of the pie charts. A new page will open.I want to know how to add url params in the javascript.
Is change datasets–data ?
const data = {
labels: [
'Red',
'Blue',
'Yellow'
],
datasets: [{
label: 'My First Dataset',
data: [300, 50, 100],
backgroundColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 205, 86)'
],
hoverOffset: 4
}]
};
EMM. I’m not to try everything. I don’t know how to do it.
