技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
core-components-data-actions【数据与研究】Compose Vizro pages with components, data, filters, selectors, tables, custom components, and action callbacks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task asks for Vizro model composition below the dashboard/page level: cards, graphs, tables, filters, selectors, parameters, buttons, actions, data registration, custom Dash components, or graph/table interactions.
Route elsewhere when the task is mainly about:
../core-dashboard-build/SKILL.md.../charts-and-figures/SKILL.md.vizro-dash-components TypeScript/generated wrappers: ../dash-components-build/SKILL.md.Typical page composition uses vizro.models aliases:
import vizro.models as vm
import vizro.plotly.express as px
page = vm.Page(
title="Sales",
components=[
vm.Card(text="Summary"),
vm.Graph(figure=px.scatter(px.data.iris(), x="sepal_width", y="sepal_length", color="species")),
vm.Table(figure=px.data.tips().head(20)),
],
controls=[
vm.Filter(column="species"),
],
)
Always check the live field list when uncertain:
python scripts/inspect_vizro_schema.py --models Card Graph Table AgGrid Filter Parameter Button Slider Checklist Dropdown
vizro.plotly.express functions.vizro.managers.data_manager with stable string keys, as shown in the YAML example.Example registration:
from vizro.managers import data_manager
import vizro.plotly.express as px
data_manager["iris"] = px.data.iris()
Filter/selector models instead of manual Dash callbacks for normal dashboard filtering.controls, whether a target component is expected, and whether the column name exists.vizro.actions; custom actions are documented in the custom-actions tutorial.graph-table-actions.md and the e2e-flow wiring-vizro-actions reference.vizro-dash-components (Cascader, Markdown), route to ../dash-components-build/SKILL.md for props and generation.vizro-core, update docs/examples and focused model tests.Dashboard with one Page and one Card build?vizro-core/src/vizro/models/__init__.py: exported component/control/action model classes.vizro-core/src/vizro/actions/__init__.py: built-in action surface.vizro-core/src/vizro/managers/_data_manager.py: data registration and lookup behavior.data.md, actions.md, filters.md, selectors.md, table.md, graph-table-actions.md, custom-components.md.vizro-core/examples/tutorial-custom-actions/app.py, YAML data registration example.