数据仪表板创建器

作者:鹿Sir开发工具v6

创建包含KPI指标卡片、柱状图/饼图/折线图、进度条和数据可视化组件的HTML数据仪表板,适用于数据展示、业务监控和分析报告场景。

下载量
289
点赞
72
价格
免费

技能文档

---
name: dashboard-creator
title: 数据仪表板创建器
category: 开发工具
description: 创建包含KPI指标卡片、柱状图/饼图/折线图、进度条和数据可视化组件的HTML数据仪表板,适用于数据展示、业务监控和分析报告场景。
---

# Dashboard Creator

Create interactive HTML dashboards with KPI cards and charts.

## When to Use

- "Create dashboard for [metrics]"
- "Show KPI visualization"
- "Generate performance dashboard"
- "Make analytics dashboard with charts"

## Components

1. **KPI Cards**: metric name, value, change %, trend icon
2. **Charts**: bar/pie/line using SVG or CSS
3. **Progress Bars**: completion indicators
4. **Data Tables**: tabular data display

## HTML Structure

```html
<!DOCTYPE html>
<html>
<head>
  <title>[Project] Dashboard</title>
  <style>
    body { font-family: system-ui; background: #f7fafc; }
    .kpi-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    .kpi-value { font-size: 36px; font-weight: bold; }
    .trend-up { color: #48bb78; }
    .trend-down { color: #e53e3e; }
  </style>
</head>
<body>
  <h1>[Dashboard Name]</h1>
  <div class="grid">
    <!-- KPI cards -->
    <!-- Charts -->
    <!-- Progress bars -->
  </div>
</body>
</html>
```

## KPI Card Pattern

```html
<div class="kpi-card">
  <div class="kpi-label">Revenue</div>
  <div class="kpi-value">$124K</div>
  <div class="trend-up">↑ 12.5%</div>
</div>
```

## Chart Pattern (SVG Bar Chart)

```html
<svg viewBox="0 0 400 300">
  <rect x="50" y="100" width="40" height="150" fill="#4299e1"/>
  <rect x="120" y="80" width="40" height="170" fill="#48bb78"/>
  <!-- bars for each data point -->
</svg>
```

## Workflow

1. Extract metrics and data
2. Create KPI cards grid
3. Generate charts (bar/pie/line) as SVG
4. Add progress indicators
5. Write to `[name]-dashboard.html`

Use semantic colors: green (positive), red (negative), blue (neutral).

使用说明

# 数据仪表板创建器

创建包含KPI指标卡片、柱状图/饼图/折线图、进度条和数据可视化组件的HTML数据仪表板,适用于数据展示、业务监控和分析报告场景。

## 使用方法

直接描述你的需求即可触发此技能。

## 工作原理

基于预定义工作流自动处理用户请求并输出结构化结果。

## 适用场景

- 日常开发工具相关任务
- 需要专业分析和处理的场景
- 批量或重复性工作的自动化处理

如何安装此技能?

访问技能市场,点击「安装」按钮,按提示将技能包放入 AI 编程助手的 skills 目录即可。

浏览技能市场

支持平台:Qoder · QoderWork · Claude · Codex 等 AI 编程助手