Skip to main content

data-visualization-engine

Creates interactive charts, graphs, and visual data representations. Supports D3, Chart.js, and custom canvas rendering.

来源信息

仓库
Fadil369/Solutions
最近来源活动
2026年4月9日 00:36
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
Data Visualization Engine
version
1.0.0
description
Creates interactive charts, graphs, and visual data representations. Supports D3, Chart.js, and custom canvas rendering.
author
workspace
activated
false
# Data Visualization Engine Creates interactive charts, graphs, and visual data representations. Supports D3, Chart.js, and custom canvas rendering. ## Decision Framework ### When to Apply Use when: Dashboards, reports, analytics views, data exploration interfaces ### When NOT to Apply Don't use when: Simple data tables, single number displays ## Anti-Patterns ### 1. Misleading Charts ```javascript // BAD: Truncated Y-axis exaggerates differences options: { scales: { y: { min: 95, max: 100 } } } // GOOD: Zero-based Y-axis options: { scales: { y: { beginAtZero: true } } } ``` ### 2. 3D Charts 3D charts distort data perception. Always prefer 2D. ### 3. No Legends Charts without legends are meaningless when multiple series exist. ## Trigger Phrases - "Create chart" - "Data visualization" - "Graph component" - "Dashboard charts" - "Interactive visualization" ## Patterns ### Responsive Chart Component ```javascript const ChartContainer = ({ type, data, options }) => { const containerRef = useRef(null); const chartRef = useRef(null); useEffect(() => { if (chartRef.current) chartRef.current.destroy(); chartRef.current = new Chart(containerRef.current, { type, data, options: { responsive: true, maintainAspectRatio: false, ...options } }); return () => chartRef.current?.destroy(); }, [type, data, options]); return <div style={{ position: 'relative', height: '400px' }}> <canvas ref={containerRef} /> </div>; }; ``` ## Integration - Works with: dashboard-composition-engine, performance-budget-enforcer
在 GitHub 查看