vue-peity

A Vue version of an excellent peity library for beautiful mini graphs.
43,580 63
Install
npm install vue-peity
Latest Version:0.5.0
License:MIT
Last Updated:Dec 6, 2022
Links: GitHub  ·  npm
Maintainer: fundon

Peity

A Vue version of an excellent peity library for beautiful mini graphs.

Usage

<template>
  <peity :type="'pie'" :options="{ 'fill': ['red', '#eeeeee'], width: 50, height:50,  'innerRadius': 10, 'radius': 40 }" :data="pieData"></peity>
</template>

<script>
import Peity from 'vue-peity'

export default {
  components: {
    Peity
  },

  computed: {
    pieData () {
      return this.data.toString()
    }
  },

  data () {
    return {
      data: [1, 2, 3, 2, 2]
    }
  },

  created () {
    setInterval(() => {
      // https://vuejs.org/guide/list.html#Mutation-Methods
      this.data.unshift(this.data.pop())
    }, 377)
  }
}
</script>

Badges


fundon.me  ·  GitHub @fundon  ·  Twitter @_fundon

Related Packages

anichart

Data visualization animation library

4,253 1,131
ag-charts-vue

AG Charts Vue Component

50,857 485
@efont/vue-baselib

vue-baselib

2,721 2
@phronesyss/bar-chart

This is the first part of the admetricks challenge, that consist on creating two...

407 0

Version History

Version Released License
0.5.0 MIT
0.4.0 MIT
0.3.1 MIT
0.3.0 MIT
0.2.1