Mini charts click events
This version adds click events to all mini charts:
VueUiSparkline
VueUiSparkbar
VueUiSparkStackbar
VueUiSparkHistogram
use the @selectDatapoint
event on the component to retrieve the selected datapoint and index
<VueUiSparkbar
:dataset="dataset"
:config="config"
@selectDatapoint="selectDatapoint"
/>
function selectDatapoint({ datapoint, index }) {
console.log({ datapoint, index })
}