Fix y-axis positioning in percentageTool.ts

This commit is contained in:
Matthias 2024-01-07 19:58:37 +01:00
parent f6e2a314c9
commit 40e63d6492

View File

@ -132,7 +132,7 @@ export function usePercentageTool(chartRef, theme: Ref<string>, timeframe_ms: Re
// Rect containing text ...
shape: {
x: xr + 5, //startPos.value.x + (xr - startPos.value.x) / 2,
y: y < startPos.value.y ? y - (boxHeight + 5) : y + 9,
y: y > startPos.value.y ? y - (boxHeight + 5) : y + 9,
},
textContent: {
style: {