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