mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +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
21 lines
553 B
Python
21 lines
553 B
Python
from prefab_ui.app import PrefabApp
|
|
from prefab_ui.components import Column
|
|
from prefab_ui.components.charts import PieChart
|
|
|
|
data = [
|
|
{"category": "Bug", "count": 42},
|
|
{"category": "Feature", "count": 28},
|
|
{"category": "Docs", "count": 15},
|
|
{"category": "Infra", "count": 10},
|
|
]
|
|
|
|
with PrefabApp() as app:
|
|
with Column(css_class="p-6"):
|
|
PieChart(
|
|
data=data,
|
|
data_key="count",
|
|
name_key="category",
|
|
inner_radius=50,
|
|
show_legend=True,
|
|
height=240,
|
|
)
|