mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
improve label positioning
This commit is contained in:
parent
051de2827f
commit
793af4e68b
|
@ -106,9 +106,10 @@ export function usePercentageTool(chartRef, props) {
|
|||
},
|
||||
{
|
||||
style: {
|
||||
x: xr,
|
||||
y: y - 20,
|
||||
text: `${timeDiff} bars - ${startPrice < endPrice ? pct : '-' + pct}%`,
|
||||
x: startPos.value.x + (xr - startPos.value.x) / 2,
|
||||
y: y < startPos.value.y ? y - 18 : y + 9,
|
||||
textAlign: 'center',
|
||||
text: `${timeDiff} bars (${startPrice < endPrice ? pct : '-' + pct}%)`,
|
||||
font: '14px sans-serif',
|
||||
fill: color.value,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user