<commit_before># Chart.PieceLabel.js
PieceLabel plugin for Chart.js.

## Demo
[Demo](http://emn178.github.io/Chart.PieceLabel.js/samples/demo/)

## Download
[Compress](https://raw.github.com/emn178/Chart.PieceLabel.js/master/build/Chart.PieceLabel.min.js)  
[Uncompress](https://raw.github.com/emn178/Chart.PieceLabel.js/master/src/Chart.PieceLabel.js)

## Installation
You can also install Chart.PieceLabel.js by using Bower.

    bower install Chart.PieceLabel.js


Or node.js, you can use this command to install:

    npm install chart.piecelabel.js

## Notice
v0.4.0 has breaking changes. Please see [CHANGELOG](https://github.com/emn178/Chart.PieceLabel.js/blob/master/CHANGELOG.md#v040--2017-05-26)

## Usage
JavaScript
```JavaScript
new Chart(ctx, {
  type: type,
  data: data,
  options: {
    pieceLabel: {
      // mode 'label', 'value' or 'percentage', default is 'percentage'
      mode: 'value',

      // precision for percentage, default is 0
      precision: 0,

      // font size, default is defaultFontSize
      fontSize: 12,

      // font color, default is '#fff'<commit_msg>Updated README to include showZero option<commit_after># Chart.PieceLabel.js
PieceLabel plugin for Chart.js.

## Demo
[Demo](http://emn178.github.io/Chart.PieceLabel.js/samples/demo/)

## Download
[Compress](https://raw.github.com/emn178/Chart.PieceLabel.js/master/build/Chart.PieceLabel.min.js)  
[Uncompress](https://raw.github.com/emn178/Chart.PieceLabel.js/master/src/Chart.PieceLabel.js)

## Installation
You can also install Chart.PieceLabel.js by using Bower.

    bower install Chart.PieceLabel.js


Or node.js, you can use this command to install:

    npm install chart.piecelabel.js

## Notice
v0.4.0 has breaking changes. Please see [CHANGELOG](https://github.com/emn178/Chart.PieceLabel.js/blob/master/CHANGELOG.md#v040--2017-05-26)

## Usage
JavaScript
```JavaScript
new Chart(ctx, {
  type: type,
  data: data,
  options: {
    pieceLabel: {
      // mode 'label', 'value' or 'percentage', default is 'percentage'
      mode: 'value',

      // precision for percentage, default is 0
      precision: 0,
      
      //identifies whether or not labels of value 0 are displayed, default is false
      showZero: true,    
      // font size, default is defaultFontSize
      fontSize: 12,

      // font color, default is '#fff'
{'fraction_non_alphanumeric': 0.13034188034188035, 'fraction_numerical': 0.02606837606837607, 'mean_word_length': 3.3921200750469045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6140898', 'n_tokens_mistral': 832, 'n_tokens_neox': 769, 'n_words': 187}