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:

  1. labelTranslate
  • The amount that labels will be translated out from the center of the pie. Default: .95
  1. 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

1

Version

0.0.4

License

Apache-2.0

Unpacked Size

15.9 kB

Total Files

4

Last publish

Collaborators

  • nmushkin