Add daily downloads graph

This commit is contained in:
Marty Oehme 2025-09-27 11:34:52 +02:00
parent 761cd9b2ad
commit 8fc84287ef
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -127,12 +127,16 @@ def _():
return
@app.cell
def _(df: pl.DataFrame):
(
lp.ggplot(sizes_df, lp.aes(x="date", y="size"))
+ lp.geom_point()
+ lp.geom_smooth(method="lowess")
lp.ggplot(
df.group_by("date").agg(pl.col("downloads").sum()).sort("date"),
lp.aes("date", "downloads"),
)
+ lp.geom_line()
+ lp.labs(
title="",
title="Daily downloads",
)
)
return