bubble-chart-generator

SKILL开发
开发 未标注权限 许可证不明确

This skill generates interactive Chart.js bubble chart visualizations for priority matrices and multi-dimensional data analysis. Use this skill when users need to create scatter plots with variable bubble sizes, particularly for 2x2 priority matrices (Impact vs Effort, Risk vs Value, etc.), portfolio analysis, or any visualization comparing items across two dimensions with a third dimension represented by size. The skill creates a complete MicroSim package with HTML, CSS, and documentation.

一句话选型结论

按资料字段整理

bubble-chart-generator是开发类的 Agent Skill,安装方式:GitHub 仓库,权限级别未标注,许可证不明确,没有现成安装命令,需按说明手动放置 SKILL.md。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式GitHub 仓库 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 1 仓库 database-management
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

GitHub 仓库
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    按安装说明或仓库 README,把 SKILL.md 放到客户端的 skills 目录(一般一个技能一个文件夹)。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方vishalsachdev仓库 database-management · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式GitHub 仓库安装包 vishalsachdev/database-management
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 未标注
正文体量11.1 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 基础信息齐全,可以先按说明装一个试试。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有现成安装命令,要按安装说明或仓库 README 手动放置。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
bubble-chart-generator当前 未标注权限 GitHub 仓库 未标注 未标注 无
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

11.1 KB
模型实际读到的说明书原文,来自技能仓库

Bubble Chart Generator

Overview

This skill generates professional, interactive bubble chart visualizations using Chart.js. Bubble charts are ideal for displaying three-dimensional data on a 2D plane: X-axis, Y-axis, and bubble size. The skill creates a complete MicroSim package suitable for embedding in educational content or documentation sites built with MkDocs.

When to Use This Skill

Use this skill when users request:

  • Priority matrices: Impact vs Effort, Risk vs Value, Cost vs Benefit
  • Portfolio visualizations: Comparing items across two dimensions with frequency/count as size
  • Multi-dimensional data: Any dataset with three key metrics to visualize
  • Quadrant analysis: Categorizing items into four strategic zones
  • Interactive charts: Need for hover tooltips, clickable elements, or dynamic data display

Common trigger phrases:
- "Create a bubble chart showing..."
- "Visualize the priority matrix for..."
- "Build an interactive scatter plot with..."
- "Show a 2x2 matrix with bubble sizes representing..."

Workflow

Step 1: Understand the Data and Requirements

Before generating the chart, gather information about:

  1. Data structure: What items need to be visualized?
    - Item names/labels
    - X-axis values and label (e.g., "Effort", "Risk")
    - Y-axis values and label (e.g., "Impact", "Value")
    - Size metric (e.g., "Count", "Cost", "Frequency")
    - Optional: Status/category for color coding

  2. Context: What is the purpose of the visualization?
    - Educational content
    - Decision-making tool
    - Analysis report
    - Portfolio review

  3. Integration: Where will the chart be used?
    - Standalone page
    - Embedded in documentation
    - Part of a presentation
    - MkDocs site integration

Step 2: Create Directory Structure

Create a new directory for the MicroSim following this pattern:

docs/sims/<chart-name>/
├── main.html         # Main visualization file
├── style.css         # Styling
└── index.md          # Documentation (if part of MkDocs)

Naming convention: Use kebab-case (lowercase with hyphens) for directory names that are descriptive and URL-friendly (e.g., skill-impact-chart, portfolio-analysis, risk-assessment-matrix).

Step 3: Create main.html with Chart.js

Generate the main HTML file with the following structure:

  1. HTML boilerplate with proper meta tags
  2. Chart.js CDN import: https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js
  3. Canvas element for the chart
  4. Quadrant analysis section (optional but recommended)
  5. JavaScript implementation:
    - Data array with all items
    - Color scheme based on categories/status
    - Bubble size calculation function
    - Chart.js configuration with bubble chart type
    - Custom plugin for quadrant backgrounds and labels
    - Quadrant population logic

Key Chart.js configuration elements:

// Data structure
const data = [
    { type: 'item-name', count: 10, impact: 6.7, effort: 1, priority: 6.67, status: 'Category' },
    // ... more items
];

// Bubble size scaling
function getBubbleSize(count) {
    const minSize = 8;
    const maxSize = 30;
    return minSize + ((count - minCount) / (maxCount - minCount)) * (maxSize - minSize);
}

// Chart options
{
    type: 'bubble',
    options: {
        aspectRatio: 1.5,
        scales: {
            x: { min: 0, max: 10, title: { text: 'X-Axis Label' } },
            y: { min: 0, max: 10, title: { text: 'Y-Axis Label' } }
        },
        plugins: {
            title: { text: 'Chart Title' },
            tooltip: { /* custom tooltip */ }
        }
    },
    plugins: [
        // Custom plugin for quadrant backgrounds and labels
    ]
}

Important considerations:

  • Prevent edge clipping: Add padding or extend scale ranges (e.g., min: -0.5, max: 10.5)
  • Quadrant shading: Use afterDraw plugin to add background colors
  • Label positioning: Position labels above bubbles to avoid overlap
  • Responsive design: Set appropriate aspect ratio and container height

Step 4: Create style.css

Generate CSS with professional styling:

  1. Reset and base styles: Clean defaults for cross-browser consistency
  2. Chart container: Fixed height (typically 600px), padding, box-shadow
  3. Legend container: Styling for quadrant analysis section
  4. Quadrant sections: Individual styling for each priority zone
  5. Interactive elements: Hover effects, transitions
  6. Responsive design: Media queries for mobile/tablet
  7. Print styles: Print-friendly adjustments

Key design principles:
- Use clean, modern aesthetics
- Provide clear visual hierarchy
- Add subtle shadows and borders
- Use gradients for quadrant labels
- Include hover effects for engagement
- Ensure accessibility with sufficient contrast

Step 5: Create index.md Documentation

If the chart is part of a MkDocs site, create comprehensive documentation:

  1. Title and overview: Brief description of the visualization
  2. Embedded iframe: Display the chart inline
    3 Link to Fullscreen: Markdown link to main.html with
  3. Interpretation guide: Explain how to read the chart
  4. Features section: List interactive elements
  5. Customization guide: Detailed instructions for modifying:
    - Chart margins and layout
    - Bubble sizes
    - Colors (status colors, quadrant backgrounds)
    - Data structure
    - Label positioning
    - Tooltip content
  6. Technical details: Dependencies, browser compatibility, file structure
  7. Use cases: Other applications for this pattern
  8. References: Links to Chart.js docs and related resources

Documentation structure template:

# [Chart Title]

[Brief description]

## Interactive Chart

<iframe src="main.html" width="100%" height="900" frameborder="0"></iframe>

## Overview

[Detailed explanation of what the chart shows]

## Features

### Interactive Elements
- Hover tooltips
- Labeled bubbles
- Quadrant backgrounds

### Visual Design
- Bubble sizes
- Status colors
- Grid lines

## Customization Guide

### Adjusting Chart Margins and Layout
[Specific code examples]

### Adjusting Bubble Sizes
[Specific code examples]

### Changing Colors
[Specific code examples]

## Technical Details
- Dependencies
- Browser compatibility
- File structure

## Use Cases
[Other applications]

Step 6: Integrate into Navigation (MkDocs)

If using MkDocs, add the chart to the navigation in mkdocs.yml:

- MicroSims:
    - Introduction: sims/index.md
    - [Chart Name]: sims/[chart-name]/index.md
    - [Other sims...]: ...

Place the entry in a logical position based on:
- Related content (group similar visualizations)
- Alphabetical order
- Creation order

Step 7: Test and Validate

Before considering the chart complete:

  1. Visual testing:
    - Open main.html in a browser directly
    - Test with mkdocs serve if applicable
    - Check all breakpoints (desktop, tablet, mobile)
    - Verify no bubbles are clipped at edges
    - Confirm labels are readable and positioned correctly

  2. Interactive testing:
    - Hover over all bubbles to verify tooltips
    - Check quadrant list population
    - Test on different browsers

  3. Documentation review:
    - Verify all code examples are accurate
    - Test customization instructions
    - Check all internal links

  4. Data validation:
    - Confirm all data points are plotted correctly
    - Verify calculations (e.g., priority scores)
    - Check category assignments

Best Practices

Data Preparation

  1. Normalize scales: Use consistent 0-10 scales for comparability
  2. Calculate derived metrics: Include priority scores or ratios
  3. Categorize logically: Group items by meaningful status or type
  4. Validate completeness: Ensure all required fields are present

Visual Design

  1. Color coding: Use intuitive colors (green=good, red=caution)
  2. Bubble sizing: Scale proportionally with clear min/max bounds
  3. Quadrant shading: Use subtle backgrounds (5-10% opacity)
  4. Label clarity: Ensure text is always readable against backgrounds
  5. Spacing: Prevent overlap with appropriate margins

Documentation

  1. Code examples: Provide exact line numbers and snippets
  2. Before/after: Show the effect of customizations
  3. Parameter ranges: Suggest appropriate value ranges
  4. Common issues: Address edge clipping, overlap, performance

MkDocs Integration

  1. Iframe sizing: Use height="900" for full chart visibility
  2. Path references: Use relative paths (../sims/...)
  3. Navigation placement: Group with related MicroSims
  4. Responsive embedding: Add border and border-radius for polish

Common Variations

Simple Scatter Plot (No Bubbles)

For uniform sizing, set all bubbles to the same radius:

function getBubbleSize(count) {
    return 10; // Fixed size
}

Color by Quadrant

Instead of status, color bubbles by their quadrant position:

function getQuadrantColor(impact, effort) {
    if (impact > 5 && effort <= 5) return 'green';
    if (impact > 5 && effort > 5) return 'yellow';
    if (impact <= 5 && effort <= 5) return 'lightblue';
    return 'red';
}

Three or More Categories

Expand the color scheme and datasets:

const colors = {
    'High': 'rgba(40, 167, 69, 0.8)',
    'Medium': 'rgba(255, 193, 7, 0.8)',
    'Low': 'rgba(220, 53, 69, 0.8)'
};

Time-Series Animation

Add data for multiple time periods and animate transitions (requires additional Chart.js configuration).

Troubleshooting

Bubbles Clipped at Edges

Solution: Extend scale ranges or add layout padding:

scales: {
    x: { min: -0.5, max: 10.5 }
}

Labels Overlapping

Solution: Increase label offset or reduce font size:

element.y - element.options.radius - 12  // Increase offset

Performance Issues

Solution: Reduce data points or disable animations:

animation: false

Quadrant Colors Not Showing

Solution: Verify the afterDraw plugin is registered and ctx.globalAlpha is set appropriately (0.05-0.1).

References

This skill uses the following assets and references:

Assets

  • Chart.js CDN: https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js
  • No local assets required (Chart.js loaded from CDN)

References

  • Chart.js Documentation
  • Bubble Chart Guide
  • Chart.js Plugins

Example Implementation

See the skill-impact-chart example at /docs/sims/skill-impact-chart/ for a complete reference implementation.

常见问题

5 问
答案由本站依据条目字段整理
bubble-chart-generator怎么安装?

没有现成安装命令:按安装说明或仓库 README,把 SKILL.md 放进客户端的 skills 目录(一般一个技能一个文件夹)。

bubble-chart-generator支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

bubble-chart-generator权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

bubble-chart-generator收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

bubble-chart-generator用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。