New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

vue-easy-pie-chart

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-easy-pie-chart

easy-pie-chart with all power of Vue2

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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)DefaultDescription
bar-color#ef1e25The 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-size20pxSet the font size of the inner text
track-color#f2f2f2The color of the track for the bar, false to disable rendering.
scale-color#dfe0e0The color of the scale lines, false to disable rendering.
line-caproundDefines how the ending of the bar line looks like. Possible values are: butt, round and square.
line-width3Width of the bar line in px.
size110Size of the pie chart in px. It will always be a square.
animatefalseTime in milliseconds for a eased animation of the bar growing, or false to deactivate.

Events

EventDescription
@startCallback function that is called at the start of any animation (only if animate is not false).
@stopCallback function that is called at the end of any animation (only if animate is not false).
@stepCallback 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).

Keywords

library

FAQs

Package last updated on 31 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts