mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Updated goals chart.
This commit is contained in:
parent
9f43ae67ef
commit
abd0913e9b
1 changed files with 7 additions and 7 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue