This commit is contained in:
MuslemRahimi 2024-07-24 13:45:03 +02:00
parent d948458ed9
commit 534d043f7f

View File

@ -408,7 +408,7 @@ onMount(async() => {
<circle cx="18" cy="18" r="16" fill="none" class="stroke-current text-[#3E3E3E]" stroke-width="3"></circle>
<!-- Progress Circle inside a group with rotation -->
<g class="origin-center -rotate-90 transform">
<circle cx="18" cy="18" r="16" fill="none" class="stroke-current text-blue-500" stroke-width="3" stroke-dasharray="100" stroke-dashoffset={100-(buySellRatio*100)?.toFixed(2)}></circle>
<circle cx="18" cy="18" r="16" fill="none" class="stroke-current text-blue-500" stroke-width="3" stroke-dasharray="100" stroke-dashoffset={buySellRatio>= 1 ? 0 : 100-(buySellRatio*100)?.toFixed(2)}></circle>
</g>
</svg>
<!-- Percentage Text -->