Files
stack/infra/marimo/snippets/chart-line.py
kert 31c430388b
Some checks failed
CI / skinny-install (aco) (push) Successful in 52s
CI / skinny-install (api) (push) Successful in 31s
CI / skinny-install (bcda) (push) Successful in 27s
CI / skinny-install (bib) (push) Successful in 27s
CI / skinny-install (bls) (push) Successful in 21s
CI / skinny-install (ccw) (push) Successful in 22s
CI / skinny-install (conf) (push) Successful in 25s
CI / skinny-install (cli) (push) Successful in 48s
CI / skinny-install (cms) (push) Successful in 25s
CI / skinny-install (pfs) (push) Successful in 24s
CI / skinny-install (rex) (push) Successful in 23s
CI / lint-test (push) Successful in 6m1s
Infra CI / notebooks (push) Successful in 6s
Infra CI / zotero (push) Successful in 6s
Infra CI / docs (push) Successful in 13s
Infra CI / api (push) Successful in 9s
Infra CI / mc (push) Successful in 6s
Package Supply Chain / pkg-supply-chain (push) Failing after 27s
Deploy / build-scan-report (push) Successful in 3m59s
refactor: separate notebooks content from server config
Move marimo server config, snippets, and patched assets out of
notebooks/ into infra/marimo/, keeping notebooks/ as pure .py content.

- infra/marimo/marimo.toml: merged authoritative config (was split
  across .marimo.toml and .marimo-config/marimo.toml)
- infra/marimo/snippets/: 10 code templates (was notebooks/snippets/)
- infra/marimo/home-page-patched.js: custom home page (was in notebooks/)
- Deleted duplicate loch.css (already served from assets/css/marimo.css)
- Updated compose.yml volume mounts, Dockerfile, stack.toml path_filter
- 18 layout tests enforce separation going forward

Closes #214, closes #215, closes #216, closes #217, closes #218
2026-03-24 21:43:04 -04:00

43 lines
759 B
Python

import marimo
__generated_with = "0.20.4"
app = marimo.App()
@app.cell
def _(mo):
mo.md(r"""
# Chart: Time series line chart
Template for a multi-series time series line chart with Altair.
""")
return
@app.cell
def _(alt):
chart = (
alt.Chart(df.to_pandas())
.mark_line(point=True)
.encode(
x=alt.X("date:T", title="Date"),
y=alt.Y("value:Q", title="Value"),
color=alt.Color("series:N", title="Series"),
tooltip=["date:T", "series:N", "value:Q"],
)
.properties(title="Title", width=800, height=350)
)
chart
return (chart,)
@app.cell
def _():
import marimo as mo
return (mo,)
if __name__ == "__main__":
app.run()