mirror of
https://github.com/umami-software/umami.git
synced 2026-02-24 14:35:35 +01:00
update property names for list table to label, count, percent
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
This commit is contained in:
parent
03933bea7a
commit
6d9d8b353f
5 changed files with 51 additions and 46 deletions
|
|
@ -26,6 +26,7 @@ export function UTM({ websiteId, startDate, endDate }: UTMProps) {
|
|||
<Column gap>
|
||||
{UTM_PARAMS.map(param => {
|
||||
const items = data?.[param];
|
||||
|
||||
const chartData = {
|
||||
labels: items.map(({ utm }) => utm),
|
||||
datasets: [
|
||||
|
|
@ -50,9 +51,9 @@ export function UTM({ websiteId, startDate, endDate }: UTMProps) {
|
|||
<ListTable
|
||||
metric={formatMessage(labels.views)}
|
||||
data={items.map(({ utm, views }) => ({
|
||||
x: utm,
|
||||
y: views,
|
||||
z: (views / total) * 100,
|
||||
label: utm,
|
||||
count: views,
|
||||
percent: (views / total) * 100,
|
||||
}))}
|
||||
/>
|
||||
</Column>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue