mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
* Archive v3 docs under /v3 and publish v4 as the primary version * Label primary docs version v4.0.0 (alpha 1) * Add What's New in v4 page; fix upgrade-guide phrasing; point banner at What's New * Rewrite What's New around v4's new capabilities, not the sampling deprecation * Lead What's New with the SDK v2 engine swap and the SEPs it brings * State ships now (link Session State); tasks arrive next alpha * Exclude docs/v3 frozen snapshots from doc-example import validation
23 lines
737 B
Python
23 lines
737 B
Python
from prefab_ui.app import PrefabApp
|
|
from prefab_ui.components import Column
|
|
from prefab_ui.components.charts import BarChart, ChartSeries
|
|
|
|
data = [
|
|
{"quarter": "Q1", "revenue": 42000, "costs": 28000},
|
|
{"quarter": "Q2", "revenue": 51000, "costs": 31000},
|
|
{"quarter": "Q3", "revenue": 47000, "costs": 29000},
|
|
{"quarter": "Q4", "revenue": 63000, "costs": 35000},
|
|
]
|
|
|
|
with PrefabApp() as app:
|
|
with Column(css_class="p-6"):
|
|
BarChart(
|
|
data=data,
|
|
series=[
|
|
ChartSeries(data_key="revenue", label="Revenue"),
|
|
ChartSeries(data_key="costs", label="Costs"),
|
|
],
|
|
x_axis="quarter",
|
|
show_legend=True,
|
|
height=250,
|
|
)
|