skills/chart-skills/ucharts/SKILL.md
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.
npx skillsauth add partme-ai/full-stack-skills uchartsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
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:
examples/guide/installation.mdexamples/guide/quick-start.mdexamples/charts/examples/features/api/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 supportCharts (图表类型):
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 chartFeatures (功能特性):
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 customizationFollow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
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 APIUse templates from the templates/ directory:
templates/installation.md - Installation templatestemplates/basic-chart.md - Basic chart templatestemplates/configuration.md - Configuration templatesuCharts is a high-performance cross-platform charting library that supports uni-app, WeChat Mini Program, H5, APP and more.
Key Concepts:
Using npm:
npm install @qiun/ucharts
Using yarn:
yarn add @qiun/ucharts
Using pnpm:
pnpm add @qiun/ucharts
<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>
examples/guide/ or examples/getting-started/ → https://www.ucharts.cn/v2/#/guide/indexexamples/ → https://www.ucharts.cn/v2/#/document/indexThis skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
To use examples:
To use templates:
templates/ directory for common scaffoldingDetailed API documentation is available in the api/ directory, organized to match the official uCharts API documentation structure (https://www.ucharts.cn/v2/#/document/index):
api/chart-api.md)api/options-api.md)api/data-api.md)api/events-api.md)api/methods-api.md)To use API reference:
api/ directoryexamples/ directoryuCharts, @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
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.