Package Exports
- donut-pie
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (donut-pie) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
DonutPie
Half donut pie chart which using d3.js for vue
Installation
npm i donut-pie
Usage
- global registration
// in main.js
import DonutPie from 'donut-pie'
// import 'donut-pie/dist/DonutPie.css'
Vue.use(DonutPie)
- use as vue component
// in your vue file
import { DonutPie } from 'donut-pie'
export default {
components: {
DonutPie
}
...
}
Configuration
<donutPie v-model="your percent (eg. 60)" :title="'your title'" :remark="'your remark'"/>
for more detail
<donutPie v-model="your percent (eg. 60)" :title="'your title'" :remark="'your remark'" :conf="{ width: 360, height: 200, thickness: 22, color: '#8888D3', bgColor: '#E9E9E9', percentColor: '#333', titleColor: 'rgba(0, 0, 0, 0.65)', titleTemplate: '<h1>title</h1>' disableCornerRadius: false}"/>