vue-pie-canvas

1.10.0 • Public • Published

Usage

command:
npm install -S vue-pie-canvas


script:
import Pie from "vue-pie-canvas";

components: {
    Pie
  }
  data(){
      return{
       basedata: [
        {
          num: 200,//any size
          color: "black",
        },
        {
          num: 200,
          color: "yellow",
        },
        {
          num: 200,
          color: "green",
        },
      ],
      r: 50,
      id: "xxxx-1",//uniqueness
      }
  }
  
html:
<Pie :basedata="basedata" :r="r" :id="id" />

Preview

image

Package Sidebar

Install

npm i vue-pie-canvas

Weekly Downloads

12

Version

1.10.0

License

ISC

Unpacked Size

6.39 kB

Total Files

7

Last publish

Collaborators

  • ~zyh