Bring back onClick
This commit is contained in:
parent
3ce8cd51f2
commit
6c4e7d82e6
1 changed files with 5 additions and 0 deletions
|
@ -169,6 +169,11 @@ const chartOptions = ref<ChartOptions<'bar'>>({
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
onClick: (e, elements) => {
|
||||
var index = tierData.value.length - elements[0].datasetIndex - 1;
|
||||
var tier = tierData.value[index];
|
||||
window.location.href = import.meta.env.VITE_LABEL_URL + tier.labelName;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue