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

This commit is contained in:
Francis Cao 2025-09-17 11:43:58 -07:00
parent 03933bea7a
commit 6d9d8b353f
5 changed files with 51 additions and 46 deletions

View file

@ -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>