Agent Skills › mckinsey/vizro › designing-vizro-layouts

designing-vizro-layouts

GitHub

提供Vizro仪表盘布局设计指南,涵盖12列网格配置、组件尺寸规范、筛选器与选择器放置策略及容器模式,辅助构建结构合理的数据可视化页面。

vizro-e2e-flow/skills/designing-vizro-layouts/SKILL.md mckinsey/vizro

Trigger Scenarios

设计Vizro仪表盘布局 配置网格和组件尺寸 放置筛选器和选择器

Install

npx skills add mckinsey/vizro --skill designing-vizro-layouts -g -y
More Options

Non-standard path

npx skills add https://github.com/mckinsey/vizro/tree/main/vizro-e2e-flow/skills/designing-vizro-layouts -g -y

Use without installing

npx skills use mckinsey/vizro@designing-vizro-layouts

指定 Agent (Claude Code)

npx skills add mckinsey/vizro --skill designing-vizro-layouts -a claude-code -g -y

安装 repo 全部 skill

npx skills add mckinsey/vizro --all -g -y

预览 repo 内 skill

npx skills add mckinsey/vizro --list

SKILL.md

Frontmatter
{
    "name": "designing-vizro-layouts",
    "description": "Use this skill when designing or building Vizro dashboard layouts — grid configuration, component sizing, filter\/parameter placement, selector types, or container patterns. Activate when the user is creating wireframes, defining page structure, placing controls, or sizing charts."
}

Vizro Layout Guidelines

Core Rules

  • Use type: grid (not vm.Layout). Recommended: 12 columns, row_min_height: "140px".
  • Use -1 for empty cells. Every component must form a perfect rectangle in the grid.
  • Place 2–3 charts per row. Full-width only for time-series line charts.
  • Modifying existing layouts: Replicate the original structure and apply only the technical constraints below. See layout-guidelines.md for details.

Component Sizing (12-col grid, 140px rows)

Component Columns Rows Height
KPI Card 2–3 1 140px
Small Chart 4 3 420px
Large Chart 6 4–5 560–700px
Table 12 4–6 560–840px

KPI cards: Place in the page Grid with equal columns and equal rows per card (e.g. 4 cards = 3 cols each). Use -1 for remaining empty cells. See layout-guidelines.md for the full KPI count lookup table and YAML examples. Charts need at least 2–3 rows to avoid looking squeezed.

Filter Placement

  • Page-level (left sidebar): filters shared across multiple components
  • Container-level (above container): filters scoped only to the components inside that container
  • Prefer Filters over Parameters. Do not set targets: by default — all components containing the specified column are automatically affected. Only set targets: when you want to limit which components are affected.

Selectors

Default: Just provide the column name to Filter or Parameter — Vizro auto-selects the appropriate selector based on the data type. Only override when the auto-selected selector doesn't fit:

Data type Selector Example
2–4 options RadioItems Region (N/S/E/W)
5+ options Dropdown Category (many)
Numeric range RangeSlider Price ($0–$1000)
Single number Slider Year (2020–2025)
Date DatePicker Order date
Multi-select Checklist Status (Active, etc.)

Deep Dive

Load layout-guidelines.md when you need: grid YAML examples (correct vs incorrect), flexible width distributions, container patterns (plain/filled/outlined), visual hierarchy principles, or Vizro platform constraints.

Version History

  • db03b2b Current 2026-08-20 12:07

Same Skill Collection

vizro-e2e-flow/skills/dashboard-build/SKILL.md
vizro-e2e-flow/skills/dashboard-design/SKILL.md
vizro-e2e-flow/skills/selecting-vizro-charts/SKILL.md
vizro-e2e-flow/skills/wiring-vizro-actions/SKILL.md
vizro-e2e-flow/skills/writing-vizro-yaml/SKILL.md

Metadata

Files
0
Version
af9d0e3
Hash
c6c873d6
Indexed
2026-08-20 12:07

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-29 03:15
浙ICP备14020137号-1