Find file History

README.md

amCharts Plugin: Auto-Offset Value Axis

Version: 1.3

Description

Normally, if your chart uses multiple value axes, you would need to set it's offset property manually, in order make them not overlap.

This plugin takes care of that and positions the axes automatically. It will even take the width of the actual axis labels into account when calculating the offsets.

Works with serial charts only.

Installation

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

I.e.:

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

Usage

Set autoOffset: true in each of the value axis definition in your chart config:

"valueAxes": [{
  "id": "v1",
  "position": "left",
  "autoOffset": true
}, {
  "id": "v2",
  "position": "left",
  "autoOffset": true
}]

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.3

  • Fixed bug with value axes with guides

1.2

  • Added support for rotated serial charts (horizontal value axes)

1.1

  • The charts was being redrawn even if no autoOffset axes were there

1.0

  • Initial release