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-easy-pie-chart

v1.0.3

Published

easy-pie-chart with all power of Vue2

Downloads

2,289

Readme

vue-easy-pie-chart

easy-pie-chart with all power of Vue2.

Install

$ npm i vue-easy-pie-chart -D

Using in Vue

<template>
  <div>
     <vue-easy-pie-chart :percent="30"></vue-easy-pie-chart>
  </div>
</template>
<script>
  import VueEasyPieChart from 'vue-easy-pie-chart'
  import 'vue-easy-pie-chart/dist/vue-easy-pie-chart.css'
  
  export default {
      components:{ VueEasyPieChart }
  }
</script>

Custom the inner text

<vue-easy-pie-chart :percent="30">
  <i class="fa-icon fa-icon-email"></i>
</vue-easy-pie-chart>

Run the playground

Clone this repository to your local and run the following command to start the playground

$ npm run dev

Playground

Properties

Properites (Type) | Default | Description ------------------|---------|------------ bar-color| #ef1e25 | The color of the curcular bar. You can pass either a css valid color string like rgb, rgba hex or string colors. But you can also pass a function that accepts the current percentage as a value to return a dynamically generated color. font-size | 20px| Set the font size of the inner text track-color | #f2f2f2 | The color of the track for the bar, false to disable rendering. scale-color | #dfe0e0 | The color of the scale lines, false to disable rendering. line-cap | round | Defines how the ending of the bar line looks like. Possible values are: butt, round and square. line-width | 3 | Width of the bar line in px. size| 110 | Size of the pie chart in px. It will always be a square. animate|false|Time in milliseconds for a eased animation of the bar growing, or false to deactivate.

Events

Event | Description ------|------------ @start| Callback function that is called at the start of any animation (only if animate is not false). @stop| Callback function that is called at the end of any animation (only if animate is not false). @step| Callback function that is called during animations providing the current value (the context is the plugin, so you can access the DOM element via this.$el).