Added Charts

This commit is contained in:
2026-04-11 20:49:01 +10:00
parent e83fd3bdca
commit 95624f345c
16 changed files with 979 additions and 386 deletions
@@ -0,0 +1,18 @@
import { ref } from 'vue'
export function useChartTooltip<T>() {
const tooltipItem = ref<T | null>(null)
const tooltipX = ref(0)
const tooltipY = ref(0)
const onMouseMove = (e: MouseEvent) => {
tooltipX.value = e.clientX + 14
tooltipY.value = e.clientY + 14
}
const onMouseLeave = () => {
tooltipItem.value = null
}
return { tooltipItem, tooltipX, tooltipY, onMouseMove, onMouseLeave }
}