This commit is contained in:
MuslemRahimi 2024-07-05 22:07:53 +02:00
parent a0ac1fb7ed
commit f99125d28a
2 changed files with 8 additions and 5 deletions

View File

@ -38,6 +38,8 @@
return { unit: 'T', denominator: 1e12 };
} else if (Math?.abs(value) >= 1e9) {
return { unit: 'B', denominator: 1e9 };
} else if (Math?.abs(value) >= 1e8) {
return { unit: 'B', denominator: 1e9 };
} else if (Math?.abs(value) >= 1e6) {
return { unit: 'M', denominator: 1e6 };
} else if (Math?.abs(value) >= 1e5) {
@ -86,8 +88,8 @@
},
animation: $screenWidth < 640 ? false: true,
grid: {
left: '2%',
right: '4%',
left:'2%',
right: $screenWidth < 640 ? '0%' : '2%',
bottom: '0%',
top: '10%',
containLabel: true
@ -115,12 +117,13 @@
},
{
type: 'value',
show: false,
splitLine: {
show: false, // Disable x-axis grid lines
},
position: 'right',
},
},
],
series: [
{

View File

@ -1306,13 +1306,13 @@ function changeChartType() {
<Lazy>
<div class="w-full mt-10 sm:mt-5 m-auto sm:pl-6 sm:pb-6 sm:pt-6 {!$governmentContractComponent ? 'hidden' : ''}">
<div class="w-full mt-10 sm:mt-5 m-auto sm:pl-6 sm:pt-6 {!$governmentContractComponent ? 'hidden' : ''}">
{#await import('$lib/components/GovernmentContract.svelte') then {default: Comp}}
<svelte:component this={Comp} data={data} />
{/await}
</div>
</Lazy>
<Lazy>
<div class="w-full mt-10 sm:mt-5 m-auto sm:pl-6 sm:pb-6 sm:pt-6 {!$enterpriseComponent ? 'hidden' : ''}">