wx-charts Documentation

repository·master·Indexed 25 days ago

https://github.com/xiaolin3303/wx-charts

A lightweight, Canvas-based charting library optimized for WeChat Mini Programs. Supports various visualization types including pie, ring, line, column, area, and radar charts.

Tokens
324
Snippets
1
Records
4
Agent score
40%

What's inside wx-charts

  1. Install and use wx-charts

    master

    You can use wx-charts in your project in two ways:

    1. Direct Reference

    Use the pre-compiled files located in the dist directory:

    • dist/wxcharts.js
    • dist/wxcharts-min.js (minified version)

    2. Self-Compilation

    If you wish to build the project from source, follow these steps:

    1. Clone the repository.
    2. Install rollup globally.
    3. Install project dependencies.
    4. Run the rollup build command.
    git clone https://github.com/xiaolin3303/wx-charts.git
    npm install rollup -g
    npm install
    rollup -c
    # OR
    rollup --config rollup.config.prod.js