Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/components/Package/DownloadAnalytics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ function formatXyDataset(
type: 'line',
series: dataset.map(d => d.downloads),
color: accent.value,
useArea: true,
},
],
dates: dataset.map(d => d.timestampEnd),
Expand All @@ -187,6 +188,7 @@ function formatXyDataset(
type: 'line',
series: dataset.map(d => d.downloads),
color: accent.value,
useArea: true,
},
],
dates: dataset.map(d => d.timestamp),
Expand All @@ -200,6 +202,7 @@ function formatXyDataset(
type: 'line',
series: dataset.map(d => d.downloads),
color: accent.value,
useArea: true,
},
],
dates: dataset.map(d => d.timestamp),
Expand All @@ -213,6 +216,7 @@ function formatXyDataset(
type: 'line',
series: dataset.map(d => d.downloads),
color: accent.value,
useArea: true,
},
],
dates: dataset.map(d => d.timestamp),
Expand Down Expand Up @@ -1044,6 +1048,14 @@ const chartConfig = computed(() => {
<ClientOnly v-if="chartData.dataset">
<div>
<VueUiXy :dataset="chartData.dataset" :config="chartConfig" class="[direction:ltr]">
<!-- Subtle gradient applied for a unique series (chart modal) -->
<template #area-gradient="{ series: chartModalSeries, id: gradientId }">
<linearGradient :id="gradientId" x1="0" x2="0" y1="0" y2="1">
<stop offset="0%" :stop-color="chartModalSeries.color" stop-opacity="0.2" />
<stop offset="100%" :stop-color="colors.bg" stop-opacity="0" />
</linearGradient>
</template>

<!-- Custom legend for multiple series -->
<template v-if="isMultiPackageMode" #legend="{ legend }">
<div class="flex gap-4 flex-wrap justify-center">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"vite-plugin-pwa": "1.2.0",
"vite-plus": "0.0.0-833c515fa25cef20905a7f9affb156dfa6f151ab",
"vue": "3.5.27",
"vue-data-ui": "3.14.7"
"vue-data-ui": "3.14.8"
},
"devDependencies": {
"@e18e/eslint-plugin": "0.1.4",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading