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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vue-materials/pie-chart-block

v1.0.0

Published

v-chart 饼图

Downloads

4

Readme

pie-chart

简介:pie-chart

v-chart 饼图

PieChart

settings 配置项

| 配置项 | 简介 | 类型 | 备注 | | --- | --- | --- | --- | | dimension | 维度 | string | 默认columns第一项为维度 | | metrics | 指标 | string | 默认columns第二项为指标 | | dataType | 数据类型 | string | 可选值: KMB, normal, percent | | legendLimit | legend显示数量限制 | number | legend数量过多会导致饼图样式错误,限制legend最大值并且当超过此值时,隐藏legend可以解决这个问题 | | selectedMode | 选中模式 | string | 可选值:single, multiple,默认为false | | hoverAnimation | 是否开启 hover 在扇区上的放大动画效果 | boolean | 默认值为true | | radius | 饼图半径 | number | - | | offsetY | 纵向偏移量 | number | - | | digit | 设置数据类型为percent时保留的位数 | number | 默认为2 | | roseType | 显示为南丁格尔玫瑰图 | string | 默认不展示为南丁格尔玫瑰图,可设置为'radius', 'area' | | label | 饼图图形上的文本标签 | object | 内容参考文档 | | labelLine | 标签的视觉引导线样式 | object | 内容参考文档 | | itemStyle | 图形样式 | object | 内容参考文档| | level | 多圆饼图时设置 | array | - | | limitShowNum | 设置超过此数字时使用‘其他’代替 | number | 此时数据会按照由大到小顺序显示 |

备注1. level 的值接受二维数组,例如:[['a', 'b'], ['c', 'd']], 表示的含义是内层展示的是维度中的'a', 'b'的指标加在一起组成的饼图,外层为'c', 'd'的指标加在一起组成的环图。