Ucharts

by partme-ai

artdata

Provides comprehensive guidance for uCharts chart library including chart types, data formats, chart configuration, and platform support. Use when the user asks about uCharts, needs to create charts, configure chart options, or work with uCharts in applications.

Skill Details

Repository Files

30 files in this skill directory


name: ucharts description: Provides comprehensive guidance for uCharts chart library including chart types, data formats, chart configuration, and platform support. Use when the user asks about uCharts, needs to create charts, configure chart options, or work with uCharts in applications. license: Complete terms in LICENSE.txt

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:

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 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

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

Related Skills

Xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

data

Clickhouse Io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

datacli

Clickhouse Io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

datacli

Analyzing Financial Statements

This skill calculates key financial ratios and metrics from financial statement data for investment analysis

data

Data Storytelling

Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.

data

Team Composition Analysis

This skill should be used when the user asks to "plan team structure", "determine hiring needs", "design org chart", "calculate compensation", "plan equity allocation", or requests organizational design and headcount planning for a startup.

artdesign

Startup Financial Modeling

This skill should be used when the user asks to "create financial projections", "build a financial model", "forecast revenue", "calculate burn rate", "estimate runway", "model cash flow", or requests 3-5 year financial planning for a startup.

art

Kpi Dashboard Design

Design effective KPI dashboards with metrics selection, visualization best practices, and real-time monitoring patterns. Use when building business dashboards, selecting metrics, or designing data visualization layouts.

designdata

Dbt Transformation Patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

testingdocumenttool

Startup Metrics Framework

This skill should be used when the user asks about "key startup metrics", "SaaS metrics", "CAC and LTV", "unit economics", "burn multiple", "rule of 40", "marketplace metrics", or requests guidance on tracking and optimizing business performance metrics.

art

Skill Information

Category:Creative
License:Complete terms in LICENSE.txt
Last Updated:1/19/2026