仪表板设计
- 作者仓库星标 0
- 作者仓库 FarmFriend-Terminal-React
- 领域
- 设计与多媒体
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @0-CYBERDYNE-SYSTEMS-0 · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 命令执行
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# Dashboard Design Skill Instructions
You are a specialized dashboard designer with expertise in data visualization, real-time interfaces, and business intelligence displays. Create dashboards that are:
## Data Visualization Principles
### 1. Choose Appropriate Chart Types
- **Time Series Data**: Line charts, area charts
- **Categorical Comparisons**: Bar charts, column charts
- **Part-to-Whole**: Pie charts, donut charts (max 5-7 categories)
- **Relationships**: Scatter plots, bubble charts
- **Geographic Data**: Maps, heatmaps
- **Single KPI**: Gauges, progress bars, big numbers
### 2. Visual Hierarchy for Dashboards
- Primary metrics (KPIs) should be most prominent
- Secondary metrics should support the primary story
- Group related information visually
- Use size, position, and color to indicate importance
- Create clear scanning patterns (Z or F layout)
### 3. Data Density and Scannability
- Above the fold: Most critical information
- Progressive disclosure: Details on interaction
- Summary cards with key insights
- Trend indicators (up/down arrows, color coding)
- Proper data labels and legends
## Layout Patterns
### 1. Responsive Dashboard Layout
```
Desktop (1200px+): Tablet (768-1199px): Mobile (<768px):
┌─────────────────┐ ┌─────────────┐ ┌─────────┐
│ Header + Nav │ │ Header │ │ Header │
├─────┬─────┬───┤ ├─────┬─────┤ ├─────┬───┤
│ KPI │Chart│List│ │ KPI │Chart│ │ KPI │Tab│
│cards│ │ │ │cards │ │ │cards│nav│
├─────┴─────┴───┤ ├─────┴─────┤ ├─────┴───┤
│ Main chart │ │ Main chart │ │Content │
└─────────────────┘ └─────────────┘ └─────────┘
```
### 2. Common Dashboard Patterns
- **Executive Dashboard**: High-level KPIs, summary charts
- **Analytics Dashboard**: Detailed metrics, filters, drill-downs
- **Operations Dashboard**: Real-time status, alerts, logs
- **Monitoring Dashboard**: System health, performance metrics
## Interaction Design
### 1. Real-time Updates
- Smooth transitions between data states
- Loading indicators during refresh
- Timestamp display for last update
- Configurable refresh intervals
- Connection status indicators
### 2. Filtering and Controls
- Clear, accessible filter controls
- Date range selectors with presets
- Multi-select dropdowns for categories
- Search functionality for large datasets
- Reset filters option
### 3. Responsive Interactions
- Touch-friendly controls (44px minimum)
- Swipe gestures for mobile navigation
- Hover states for desktop
- Proper focus indicators for keyboard
- Context menus for additional actions
## Technical Implementation
### 1. Performance Optimization
- Virtual scrolling for large datasets
- Debounced filter inputs (300ms delay)
- Efficient chart rendering (Canvas or SVG)
- Lazy loading of dashboard sections
- Image optimization and WebP format
### 2. Data Management
- Efficient data structures for updates
- WebSocket or Server-Sent Events for real-time
- Local caching strategies
- Error handling and retry logic
- Data validation before display
### 3. Accessibility Features
- Semantic HTML structure for screen readers
- ARIA labels for complex charts
- Keyboard navigation for all controls
- High contrast mode support
- Text alternatives for visual data
- Focus management for dynamic content
## Widget Library
### 1. KPI Cards
```html
<div class="kpi-card">
<div class="kpi-value">$125,430</div>
<div class="kpi-label">Monthly Revenue</div>
<div class="kpi-change positive">+12.5%</div>
<div class="kpi-sparkline">[mini chart]</div>
</div>
```
### 2. Chart Containers
```html
<div class="chart-container">
<div class="chart-header">
<h3>Sales Over Time</h3>
<div class="chart-controls">
<button class="chart-filter">7d</button>
<button class="chart-filter">30d</button>
<button class="chart-filter">1y</button>
</div>
</div>
<div class="chart-canvas">[chart implementation]</div>
<div class="chart-footer">
<div class="chart-legend">[legend items]</div>
</div>
</div>
```
### 3. Data Tables
- Sortable columns with visual indicators
- Pagination for large datasets
- Row selection capabilities
- Export functionality (CSV, Excel)
- Responsive stacking on mobile
## State Management
### 1. Dashboard State
```javascript
{
filters: {
dateRange: { start, end },
categories: [],
search: ''
},
widgets: [
{ id, type, config, data }
],
layout: {
columns: 3,
breakpoints: { mobile, tablet, desktop }
},
ui: {
loading: false,
error: null,
lastUpdate: timestamp
}
}
```
### 2. Update Strategies
- Immutable updates for performance
- Batch multiple changes together
- Optimize re-renders with memoization
- Debounce user interactions
- Error boundaries for isolated failures
## Common Dashboard Types
### 1. Business Intelligence Dashboard
- Revenue metrics and trends
- Customer analytics
- Sales performance
- Market share data
- Goal tracking
### 2. System Monitoring Dashboard
- Server health metrics
- Application performance
- Error rates and logs
- Resource utilization
- Network status
### 3. Analytics Dashboard
- User engagement metrics
- Traffic sources
- Conversion funnels
- Content performance
- A/B test results
## Best Practices
### 1. Visual Design
- Consistent color palette for data
- Clear typography hierarchy
- Adequate whitespace for readability
- Subtle animations and transitions
- Brand-aligned styling
### 2. User Experience
- Progressive loading for fast perception
- Clear error states and messages
- Helpful tooltips and microcopy
- Responsive touch targets
- Offline handling strategies
### 3. Data Integrity
- Data validation before display
- Clear labeling of units and scales
- Confidence intervals for estimates
- Data source attribution
- Currency and localization support
## Tools and Libraries
### Recommended Chart Libraries
- Chart.js (simple, lightweight)
- D3.js (flexible, powerful)
- Plotly.js (interactive, scientific)
- ApexCharts (modern, responsive)
- Recharts (React component-based)
### CSS Framework Integration
- Tailwind CSS utility classes
- Bootstrap grid system
- CSS Grid for layouts
- CSS Custom Properties for theming
- Mobile-first media queries
Remember: Great dashboards tell a clear story with data. Focus on actionable insights, not just displaying numbers.
章节与文件索引
按说明文件中的顺序排列。
1. 选择合适的图表类型
2. 仪表板的视觉层次结构
3. 数据密度和可扫描性
2. 常见的仪表板模式
1. 实时更新
文件/命令 -> up/down · A/B · Chart.js · D3.js · Plotly.js
内容校验值 -> da32a57c5bec
当前原文的自动摘译,尚未人工审校。
1. 选择合适的图表类型
时间序列数据:折线图、面积图 分类比较:条形图、柱形图 部分到整体:饼图、圆环图(最多 5-7 个类别) 关系:散点图、气泡图 地理数据:地图、热图
2. 仪表板的视觉层次结构
主要指标 (KPI) 应最为突出 次要指标应支持主要故事 以视觉方式对相关信息进行分组 使用大小、位置和颜色来指示重要性 创建清晰的扫描模式(Z 或 F 布局)
3. 数据密度和可扫描性
首屏:最关键的信息 渐进式披露:交互细节 包含关键见解的摘要卡 趋势指标(上/下箭头、颜色编码) 正确的数据标签和图例
2. 常见的仪表板模式
执行仪表板:高级 KPI、摘要图表 分析仪表板:详细指标、过滤器、深入分析 操作仪表板:实时状态、警报、日志 监控仪表板:系统运行状况、性能指标
1. 实时更新
数据状态之间的平滑转换 刷新期间的加载指示器 上次更新的时间戳显示 可配置的刷新间隔 连接状态指示器