Home

Awesome

🍩 Vue Doughnut Chart

Doughnut chart component for Vue.js, originally created by Greg Willson in codepen

version minified downloads Travis Dependabot Status

Demo

https://mazipan.github.io/vue-doughnut-chart

Install

yarn add vue-doughnut-chart
# OR
npm i vue-doughnut-chart

Use in components

import DoughnutChart from 'vue-doughnut-chart'

export default {
  components: {
    DoughnutChart
  }
}

Props

Props NameTypeDefault ValueDescription
percentNumber0
foregroundColorString'#1993ff'
backgroundColorString'#ecf6ff'
strokeWidthNumber10
radiusNumber85
widthNumber200
heightNumber200
classValueString''
visibleValueBooleanfalse
valueCountUpBooleanfalse
valueCountUpDurationNumber2000Number in milliseconds
valueCountUpDelayNumber500Percent count-up delay (for changing values)
customPercentSizeNumber40Percent font size in pixels (max 60)
passTextAsHtmlBooleanfalseAllows to add simple html into label
customTextString''Label value
customTextColorString'#1993ff'Valid HEX color code or CSS color for label
customTextSizeNumber15Label font size in pixels (max 22)

Bringing to NPM Registry by Irfan Maulana © 2018