npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

miniapp-charts

v0.0.4

Published

chart

Readme

miniapp-chart

小程序图表组件

Build Status npm GitHub

文档

点击查看文档

简介

本组件库产生的原因有两个

  1. 小程序canvas与浏览器标准canvas并不相同,大部分已有的组件没法直接复用;
  2. 大部分开源图表组件都太过强大并且体积庞大,实际上并不需要太强的配置功能;

故将业务中的一套图表组件开源出来,不会很强大,但是该有的配置基本都有,有问题可以提issue,我会尽量修复。

设计理念

所有组件设计的时候都会遵循两个简单的理念

  1. 尽可能提供详细的配置功能,力求组件的每个部位都是可以配置样式的;
  2. 不要太强大,本组件库的出发点是提供轻量级的图表库,使用者无须理解图形语法;

安装使用

// 通过Git的方式安装,克隆仓库至小程序目录
git clone https://github.com/yuanzm/miniapp-charts

// 也可以通过npm安装,小程序npm使用参考[文档](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html)
npm i miniapp-charts

// 小程序内直接引用miniapp-charts(注意安装路径要正确)
import LineChart         from 'miniapp-charts';
import Barchart          from 'miniapp-charts';
import RadarChart        from 'miniapp-charts';
import DistributionChart from 'miniapp-charts';

点击启动小程序代码片段

Contribution

// 1. 安装依赖
npm install

// 2. 在微信开发者工具导入demo

// 3. 开始开发
npm start

// 4. 开发完成后保证通过eslint检查
npm run lint

// 5. 如果需要编辑文档,编辑docs目录,并执行vuepress构建
npm run docs:dev