Find file History
Latest commit 320f9b5 Aug 24, 2015 @maertz maertz v1.0.3
* Fixed config updates before drawing updates
Permalink
..
Failed to load latest commit information.
README.md v1.0.3 Aug 24, 2015
pieDualLabels.js v1.0.3 Aug 24, 2015
pieDualLabels.min.js

README.md

amCharts Plugin: Pie Dual Labels

Version: 1.0.3

Description

Allows adding a secondary label to Pie chart slices.

Installation

To enable, include pieDualLabels.min.js on your web page.

I.e.:

<script src="//www.amcharts.com/lib/3/plugins/tools/pieDualLabels/pieDualLabels.min.js"></script>

Usage

To enable second set of labels for your chart slices, use the customLabel block in chart config:

"customLabel": {
  "enabled": true,
  "labelText": "[[litres]]",
  "labelRadius": 15
}
Parameter Description
enabled Needs to be set to boolean true for plugin to work
labelText What to display in the secondary label. You can use double-square bracket metacodes to specify which field in the data to use in the label. It works exactly like labelText property of the Pie chart.
labelRadius A pixel value at which to put the label. Can be negative to make the label appear inside the slice.
labelFunction Callback method to filter the output before the label gets drawn (documentation)
labelTickColor A HEX color code to define the tick color (documentation)
labelTickAlpha Number between 0-1 to define the tick opacity (documentation)
color A HEX color code to define the label color (documentation)
fontFamily Defines the label font family (documentation)
fontSize A pixel value to define the label font size (documentation)
maxLabelWidth A pixel value to define the maximum with of the label, gets wrapped when the label exceeds this width (documentation)

License

All software included in this collection is licensed under Apache License 2.0.

This basically means you're free to use or modify it, even make your own versions or completely different products out of them.

Please see attached file "license.txt" for the complete license or online here:

http://www.apache.org/licenses/LICENSE-2.0

Contact us

Changelog

1.0.3

  • Fixed config updates before drawing updates

1.0.2

  • Fixed enabled property check within drawing updates

1.0.1

  • Fixed overlapping issue

1.0

  • Initial release