ucharts
Guides uCharts usage for cross-platform chart creation in uni-app, including line, bar, pie, radar, and mixed charts with data formatting, configuration, and responsive design. Use when the user needs to create charts with uCharts, configure chart options, or build data visualizations in uni-app applications.
Best use case
ucharts is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Guides uCharts usage for cross-platform chart creation in uni-app, including line, bar, pie, radar, and mixed charts with data formatting, configuration, and responsive design. Use when the user needs to create charts with uCharts, configure chart options, or build data visualizations in uni-app applications.
Guides uCharts usage for cross-platform chart creation in uni-app, including line, bar, pie, radar, and mixed charts with data formatting, configuration, and responsive design. Use when the user needs to create charts with uCharts, configure chart options, or build data visualizations in uni-app applications.
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "ucharts" skill to help with this workflow task. Context: Guides uCharts usage for cross-platform chart creation in uni-app, including line, bar, pie, radar, and mixed charts with data formatting, configuration, and responsive design. Use when the user needs to create charts with uCharts, configure chart options, or build data visualizations in uni-app applications.
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ucharts/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ucharts Compares
| Feature / Agent | ucharts | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Guides uCharts usage for cross-platform chart creation in uni-app, including line, bar, pie, radar, and mixed charts with data formatting, configuration, and responsive design. Use when the user needs to create charts with uCharts, configure chart options, or build data visualizations in uni-app applications.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
## 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:
1. **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/`
2. **Load the appropriate example file** from the `examples/` directory:
**Guide (使用指南)**:
- `examples/guide/intro.md` - Introduction to uCharts
- `examples/guide/installation.md` - Installation guide
- `examples/guide/quick-start.md` - Quick start guide
- `examples/guide/configuration.md` - Configuration
- `examples/guide/platform-support.md` - Platform support
**Charts (图表类型)**:
- `examples/charts/line.md` - Line chart
- `examples/charts/column.md` - Column chart
- `examples/charts/area.md` - Area chart
- `examples/charts/pie.md` - Pie chart
- `examples/charts/ring.md` - Ring chart
- `examples/charts/radar.md` - Radar chart
- `examples/charts/funnel.md` - Funnel chart
- `examples/charts/gauge.md` - Gauge chart
- `examples/charts/candle.md` - Candle chart
- `examples/charts/mix.md` - Mixed chart
**Features (功能特性)**:
- `examples/features/data-format.md` - Data format
- `examples/features/chart-events.md` - Chart events
- `examples/features/chart-methods.md` - Chart methods
- `examples/features/chart-update.md` - Chart update
- `examples/features/chart-customization.md` - Chart customization
3. **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
4. **Reference API documentation** in the `api/` directory when needed:
- `api/chart-api.md` - Chart component API
- `api/options-api.md` - Options API
- `api/data-api.md` - Data API
- `api/events-api.md` - Events API
- `api/methods-api.md` - Methods API
5. **Use templates** from the `templates/` directory:
- `templates/installation.md` - Installation templates
- `templates/basic-chart.md` - Basic chart templates
- `templates/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**:
```bash
npm install @qiun/ucharts
```
**Using yarn**:
```bash
yarn add @qiun/ucharts
```
**Using pnpm**:
```bash
pnpm add @qiun/ucharts
```
### 3. Basic Setup
```vue
<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/` or `examples/getting-started/` → https://www.ucharts.cn/v2/#/guide/index
- `examples/` → 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:**
1. Identify the API you need help with
2. Load the corresponding API file from the `api/` directory
3. Find the API signature, parameters, return type, and examples
4. Reference the linked example files for detailed usage patterns
5. All API files include links to relevant example files in the `examples/` directory
## Best Practices
1. **Configure options properly**: Set up chart options correctly
2. **Format data correctly**: Use proper data format
3. **Handle events**: Use chart events for interactions
4. **Use methods**: Leverage chart methods for operations
5. **Optimize performance**: Optimize chart rendering performance
6. **Customize appearance**: Customize chart appearance when needed
7. **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 methodsRelated Skills
uniapp-ucharts
Integrates uCharts data visualization into UniApp projects including easycom configuration, pages.json and manifest.json setup, platform-specific handling (H5, mini-program, App, nvue), and chart lifecycle management. Use when the user needs to add charts to a UniApp project, configure uCharts components, or handle cross-platform chart rendering.
pencil-ui-design-system-ucharts
Initialize uCharts chart theme tokens and data visualization placeholder frames in a Pencil .pen file. Use when the user mentions Pencil with uCharts or qiun-data-charts, needs to set up chart series colors and axis tokens, or wants to create placeholder frames for Line, Bar, Pie, Radar, and other uCharts chart types.
vant-vue3
Provides structured guidance for Vant of Vue 3.0. Use when the user needs Vant with Vue 3, asks about mobile UI components such as Button, Cell, Form, Dialog, Toast, Popup, ConfigProvider, theme customization, project setup, or wants to implement mobile-first interfaces with vant or van- components.
layui-vue3
Provides comprehensive guidance for Layui Vue component library including components, layer dialogs, and utilities. Use when the user asks about Layui Vue, needs to use Layui components in Vue 3, or implement UI components.
element-plus-vue3
Provides comprehensive guidance for Element Plus Vue 3 component library including installation, components, themes, internationalization, and API reference. Use when the user asks about Element Plus for Vue 3, needs to build Vue 3 applications with Element Plus, or customize component styles.
bootstrap-vue3
Provides comprehensive guidance for Bootstrap Vue 3 component library including Bootstrap components, grid system, utilities, and Vue 3 integration. Use when the user asks about Bootstrap Vue 3, needs to use Bootstrap components in Vue 3, or implement responsive layouts.
vuex-vue2
Provides comprehensive guidance for Vuex 2.x state management in Vue 2 applications including state, mutations, actions, getters, modules, and plugins. Use when the user asks about Vuex for Vue 2, needs to manage state in Vue 2 applications, or implement Vuex patterns.
vue3
Guidance for Vue 3 using the official guide and API reference. Use when the user needs Vue 3 concepts, patterns, or API details to build components, apps, and tooling.
vue2
Provides comprehensive guidance for Vue 2.x development including Options API, components, directives, lifecycle hooks, computed properties, watchers, Vuex state management, and Vue Router. Use when the user asks about Vue 2, needs to create Vue 2 components, implement reactive data binding, handle component communication, or work with Vue 2 ecosystem tools.
vue-router
Provides comprehensive guidance for Vue Router including route configuration, navigation, dynamic routes, nested routes, route guards, programmatic navigation, and route meta. Use when the user asks about Vue Router, needs to set up routing, implement navigation guards, handle route parameters, or manage route transitions.
vue-router-v4
Provides comprehensive guidance for Vue Router v4 including route configuration, navigation, nested routes, route guards, and Vue 3 integration. Use when the user asks about Vue Router v4, needs to set up routing for Vue 3 applications, implement navigation guards, or work with Vue Router v4 features.
vue-router-v3
Guidance for Vue Router v3 using the official Installation, Guide, and API docs. Use when users need routing setup, navigation patterns, or API details for Vue 2 projects.