From fc9d6c2f00817731e625bed4cd489899d0448114 Mon Sep 17 00:00:00 2001 From: Tyler <26290074+tylersayshi@users.noreply.github.com> Date: Tue, 6 May 2025 22:45:34 -0700 Subject: [PATCH 1/2] fix(frontend): unstack download charts --- frontend/routes/package/(_islands)/DownloadChart.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/routes/package/(_islands)/DownloadChart.tsx b/frontend/routes/package/(_islands)/DownloadChart.tsx index 1881d3f3..76cbb2f1 100644 --- a/frontend/routes/package/(_islands)/DownloadChart.tsx +++ b/frontend/routes/package/(_islands)/DownloadChart.tsx @@ -24,7 +24,6 @@ export function DownloadChart(props: Props) { ) => ({ chart: { type: "area", - stacked: true, animations: { enabled: false, }, From 226e7ce358639898b4472acc848a79a9c1ae2fd7 Mon Sep 17 00:00:00 2001 From: Tyler <26290074+tylersayshi@users.noreply.github.com> Date: Thu, 8 May 2025 22:55:59 -0700 Subject: [PATCH 2/2] feat(frontend): add option to unstack downloads per version --- .../package/(_islands)/DownloadChart.tsx | 112 ++++++++++-------- 1 file changed, 63 insertions(+), 49 deletions(-) diff --git a/frontend/routes/package/(_islands)/DownloadChart.tsx b/frontend/routes/package/(_islands)/DownloadChart.tsx index 76cbb2f1..acce013f 100644 --- a/frontend/routes/package/(_islands)/DownloadChart.tsx +++ b/frontend/routes/package/(_islands)/DownloadChart.tsx @@ -20,10 +20,10 @@ export function DownloadChart(props: Props) { const getChartOptions = ( isDarkMode: boolean, - aggregationPeriod: AggregationPeriod = "weekly", ) => ({ chart: { type: "area", + stacked: true, animations: { enabled: false, }, @@ -56,7 +56,7 @@ export function DownloadChart(props: Props) { curve: "straight", width: 1.7, }, - series: getSeries(props.downloads, aggregationPeriod), + series: getSeries(props.downloads, "weekly"), xaxis: { type: "datetime", tooltip: { @@ -136,37 +136,52 @@ export function DownloadChart(props: Props) { return (