chartist-rotated-pie-labels
0.0.4 • Public • Published Rotated Pie Labels For Chartist.js
This plugin allows you to create automatically rotated labels for slices of chartist.js pie charts
Example Usage:
new Chartist.Pie('#pie-chart', {
series: mySeries,
labels: myLabels
},
{
donut: true,
showLabel: true,
plugins: [Chartist.plugins.ctRotatedPieLabels({})]
});
Options:
- labelTranslate
- The amount that labels will be translated out from the center of the pie. Default: .95
- outerAnchor
- If set to false, the labels will be anchored inside-facing. Default: true
Package Sidebar
Install
npm i chartist-rotated-pie-labels
Weekly Downloads