Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Updated goals chart.

Mike Caoabd0913e9b66
diff --git a/src/app/(main)/reports/goals/GoalsChart.tsx b/src/app/(main)/reports/goals/GoalsChart.tsx
index 910f138c5..247602343 100644
--- a/src/app/(main)/reports/goals/GoalsChart.tsx
+++ b/src/app/(main)/reports/goals/GoalsChart.tsx
@@ -25,13 +25,6 @@ export function GoalsChart({ className }: { className?: string; isLoading?: bool
</span>
<span className={styles.item}>{value}</span>
</div>
- <div className={styles.metric}>
- <div className={styles.value}>
- {formatLongNumber(result)}
- <span className={styles.total}> / {formatLongNumber(goal)}</span>
- </div>
- <div className={styles.percent}>{((result / goal) * 100).toFixed(2)}%</div>
- </div>
<div className={styles.track}>
<div
className={classNames(
@@ -46,6 +39,13 @@ export function GoalsChart({ className }: { className?: string; isLoading?: bool
style={{ width: `${percent}%` }}
></div>
</div>
+ <div className={styles.metric}>
+ <div className={styles.value}>
+ {formatLongNumber(result)}
+ <span className={styles.total}> / {formatLongNumber(goal)}</span>
+ </div>
+ <div className={styles.percent}>{((result / goal) * 100).toFixed(2)}%</div>
+ </div>
</div>
</div>
);