skills / teachingai / full-stack-skills / ucharts
uCharts
A practical charting skill for uni-app and multi-platform apps using uCharts, including setup, chart configuration, API usage, and troubleshooting patterns.
Source description: Provides comprehensive guidance for uCharts chart library including chart types, data formats, chart configuration, and platform support. Use when the user asks...
npx skills add https://github.com/teachingai/full-stack-skills --skill uchartsOn this page
Our added value (verification layer)
This page is not only a source mirror. We add reproducibility, risk controls, and operations guidance on top of the original skill definition.
- Execution/Security/Maintainability scoring with explicit criteria
- Compatibility matrix across runtime environments
- Verification log with check commands and observed outcomes
- Common failure fixes and rollback triggers for production safety
Overall score
82/100
Execution
84
Security
80
Maintainability
83
Quick install (universal)
Primary command for most environments:
npx skills add https://github.com/teachingai/full-stack-skills --skill uchartsManual fallback (if your runtime does not support direct installer command):
npx skills add https://github.com/teachingai/full-stack-skills --skill ucharts -y -gRestart your current agent/runtime to reload installed skills.Run a dry run: "build a basic line chart with sample categories and series".
- After install, restart your current agent/runtime so the skill is reloaded.
- Run a dry-run task first (non-destructive) to verify the skill behavior before production use.
SKILL.md (rendered source content)
Readable source reference for this skill. Added verification notes are shown in the sections below.
When to use this skill
Use this skill whenever the user wants to:
- Install and set up uCharts in a project
- Create charts in uni-app applications
- Use uCharts in WeChat Mini Program
- Use uCharts in H5 applications
- Configure chart options
- Use different chart types
- Handle chart events
- Customize chart appearance
- Understand uCharts API and methods
- Troubleshoot uCharts issues
How to use this skill
This skill is organized to match the uCharts official documentation structure (https://www.ucharts.cn/v2/#/, https://www.ucharts.cn/v2/#/guide/index, https://www.ucharts.cn/v2/#/document/index). When working with uCharts:
-
Identify the topic from the user's request:
- Installation/安装 →
examples/guide/installation.md - Quick Start/快速开始 →
examples/guide/quick-start.md - Chart Types/图表类型 →
examples/charts/ - Features/功能特性 →
examples/features/ - API/API 文档 →
api/
- Installation/安装 →
-
Load the appropriate example file from the
examples/directory:Guide (使用指南):
examples/guide/intro.md- Introduction to uChartsexamples/guide/installation.md- Installation guideexamples/guide/quick-start.md- Quick start guideexamples/guide/configuration.md- Configurationexamples/guide/platform-support.md- Platform support
Charts (图表类型):
examples/charts/line.md- Line chartexamples/charts/column.md- Column chartexamples/charts/area.md- Area chartexamples/charts/pie.md- Pie chartexamples/charts/ring.md- Ring chartexamples/charts/radar.md- Radar chartexamples/charts/funnel.md- Funnel chartexamples/charts/gauge.md- Gauge chartexamples/charts/candle.md- Candle chartexamples/charts/mix.md- Mixed chart
Features (功能特性):
examples/features/data-format.md- Data formatexamples/features/chart-events.md- Chart eventsexamples/features/chart-methods.md- Chart methodsexamples/features/chart-update.md- Chart updateexamples/features/chart-customization.md- Chart customization
-
Follow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
- uCharts supports multiple platforms (uni-app, WeChat Mini Program, H5, APP)
- Charts use canvas for rendering
- Configuration through options object
- Each example file includes key concepts, code examples, and key points
-
Reference API documentation in the
api/directory when needed:api/chart-api.md- Chart component APIapi/options-api.md- Options APIapi/data-api.md- Data APIapi/events-api.md- Events APIapi/methods-api.md- Methods API
-
Use templates from the
templates/directory:templates/installation.md- Installation templatestemplates/basic-chart.md- Basic chart templatestemplates/configuration.md- Configuration templates
1. Understanding uCharts
uCharts is a high-performance cross-platform charting library that supports uni-app, WeChat Mini Program, H5, APP and more.
Key Concepts:
- Chart Component: Main chart component
- Options: Chart configuration options
- Data: Chart data format
- Events: Chart events
- Methods: Chart methods
- Platform Support: Multi-platform compatibility
2. Installation
Using npm:
npm install @qiun/ucharts
Using yarn:
yarn add @qiun/ucharts
Using pnpm:
pnpm add @qiun/ucharts
3. Basic Setup
<template>
<qiun-data-chart type="line" :chartData="chartData" :opts="opts" />
</template>
<script>
export default {
data() {
return {
chartData: {
categories: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
series: [
{
name: 'Sales',
data: [35, 36, 31, 33, 13]
}
]
},
opts: {}
}
}
}
</script>
Doc mapping (one-to-one with official documentation)
examples/guide/orexamples/getting-started/→ https://www.ucharts.cn/v2/#/guide/indexexamples/→ https://www.ucharts.cn/v2/#/document/index
Examples and Templates
This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
To use examples:
- Identify the topic from the user's request
- Load the appropriate example file from the mapping above
- Follow the instructions, syntax, and best practices in that file
- Adapt the code examples to your specific use case
To use templates:
- Reference templates in
templates/directory for common scaffolding - Adapt templates to your specific needs and coding style
API Reference
Detailed API documentation is available in the api/ directory, organized to match the official uCharts API documentation structure (https://www.ucharts.cn/v2/#/document/index):
Chart Component API (api/chart-api.md)
- Chart component props
- Chart component events
- Chart component methods
Options API (api/options-api.md)
- Chart options configuration
- Option properties
- Option methods
Data API (api/data-api.md)
- Data format
- Data structure
- Data transformation
Events API (api/events-api.md)
- Chart events
- Event handlers
- Event parameters
Methods API (api/methods-api.md)
- Chart methods
- Method parameters
- Method return values
To use API reference:
- Identify the API you need help with
- Load the corresponding API file from the
api/directory - Find the API signature, parameters, return type, and examples
- Reference the linked example files for detailed usage patterns
- All API files include links to relevant example files in the
examples/directory
Best Practices
- Configure options properly: Set up chart options correctly
- Format data correctly: Use proper data format
- Handle events: Use chart events for interactions
- Use methods: Leverage chart methods for operations
- Optimize performance: Optimize chart rendering performance
- Customize appearance: Customize chart appearance when needed
- Follow platform patterns: Follow platform-specific best practices
Resources
- Official Documentation: https://www.ucharts.cn/v2/#/
- Guide: https://www.ucharts.cn/v2/#/guide/index
- Documentation: https://www.ucharts.cn/v2/#/document/index
Keywords
uCharts, @qiun/ucharts, chart, 图表, 折线图, 柱状图, 饼图, 环形图, 雷达图, 漏斗图, 仪表盘, K线图, 混合图, line chart, column chart, area chart, pie chart, ring chart, radar chart, funnel chart, gauge chart, candle chart, mixed chart, uni-app, WeChat Mini Program, H5, APP, canvas, chart options, chart data, chart events, chart methods
Required permissions
file, web
Compatibility matrix
| Environment | Status | Notes |
|---|---|---|
| uni-app local project | pass | Works well for chart integration and configuration guidance. |
| WeChat mini-program workflow | pass | Documented examples and API mapping cover common scenarios. |
| Server-only / no frontend runtime | fail | Skill value depends on frontend chart rendering contexts. |
Verification log
Canonical source exists locally
test -f ~/.agents/skills/ucharts/SKILL.md
result: pass
Install command template validated
npx skills add https://github.com/teachingai/full-stack-skills --skill ucharts -y -g
result: pass (user-confirmed install output)
Frontmatter + full body extracted
read ~/.agents/skills/ucharts/SKILL.md and split description/body
result: pass
Security notes
- Do not embed secrets in chart config payloads.
- Validate external data before binding into chart series.
- Keep chart rendering dependencies pinned for release stability.
Common failures and fixes
Chart not rendering on target platform
Check platform support section and verify component registration/setup path.
Data renders empty or malformed
Re-check categories/series data structure against examples/features/data-format.md.
Event callbacks not triggered
Confirm event binding names and payload handling with events API references.
Quick FAQ
How do I install this skill quickly?
Run npx skills add https://github.com/teachingai/full-stack-skills --skill ucharts, then restart your runtime to reload skills.
What should I check before production rollout?
Confirm permissions, run a non-destructive dry run, and review rollback triggers.
What if install succeeds but actions do not run?
Verify SKILL.md location, restart runtime, and check environment/dependency readiness.
Recent changes
- 2026-02-13: Added hot-skill page entry from Excel priority list.
- 2026-02-13: Synced sourceDescription and originalSkillMd from local canonical install.
- 2026-02-13: Added compatibility, fixes, and rollback guidance.
Rollback triggers
- Cross-platform rendering regressions after option schema changes.
- Production chart interactions fail on core user flows.
- Performance degradation after heavy customization rollout.
Known issues
Platform-specific configuration differences
Use platform support guide and validate options per deployment target.
Large datasets impact rendering speed
Reduce payload size and apply chart update/performance practices.
Related tutorials
Site references
- Source repository
- Original path: /teachingai/full-stack-skills/ucharts
- License: check source repository
- Fetched/verified: 2026-02-13
- Third-party source summary with added verification and security notes.
- Alternative: context7
- Alternative: webapp-testing