WordPress.org

Plugin Directory

amCharts: Charts and Maps

Allows to easily add interactive charts and maps using amCharts libraries.

Does this plugin work with the free/commercial versions of amCharts libraries

Yes. You can either set the plugin to use publically available libraries loaded from http://www.amcharts.com or from your local server.

Will I be able to visually edit settings and data?

No. This plugin allows editing a code directly in WordPress admin as well as inserting the charts into posts or pages using shortcodes.

It's not a fully fledged chart/map editor. It's a plugin designed to get your chart/map code into WordPress easily.

Do I need to include any JavaScript libraries in my theme code?

Nope. The plugin will take care of that for you. The required JavaScript libraries will be included in the footer of the page automatically.

Plugin will include only those libraries that are actually required to render the chart. If no charts are there on the page, no additional libraries will be included.

Let's keep the footprint small ;)

Can I insert a chart directly from my PHP code rather than shortcode?

Yes. Use the following PHP code:

<?php amcharts_insert( $chart_id ); ?>

Or, you can retrieve the chart object using following function:

<?php amcharts_get( $chart_id ); ?>

This will return an object with the following properties:

  • title - a chart title
  • post - a reference to original WP post object
  • resources - a list of resource urls
  • html - HTML code
  • javascript - JavaScript code

Can I pass custom parameters to chart code via shortcode?

Yes, starting from version 1.0.7.

Any parameter prefixed with "data-" will be passed into chart code via global AmCharts.wpChartData object.

I.e.:

[amcharts id="pie-1" data-file="data1.csv" data-sort="asc"]

The above shortcode will insert the following code before actual chart code:

AmCharts.wpChartData = {
  "file": "data1.csv",
  "sort": "asc"
}

You can then reference those passed variables in your chart code. I.e.:

alert( AmCharts.wpChartData.file );

= Are there any filters available?

Yes:

  • amcharts_shortcode_data ( $data - parsed data passed in via data-* parameters of the shortcode, $atts )
  • amcharts_shortcode_resources ( $resources - text data from resources box, $atts )
  • amcharts_shortcode_libs ( $libs - array of resouces, $atts )
  • amcharts_shortcode_javascript ( $javascript - JavaScript portion of the chart, $atts )
  • amcharts_shortcode_html ( $html - HTML portion of the chart, $atts )

= Is this plugin WPML-compatible?

Yup. It fully supports WPML. You can create language-specific versions of the charts and maps. The plugin will automatically select proper language when displaying it.

Requires: 3.0 or higher
Compatible up to: 4.5.3
Last Updated: 5 days ago
Active Installs: 2,000+

Ratings

5 out of 5 stars

Support

0 of 2 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,3,3 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,2,2 100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
0,1,0 100,1,1
100,1,1 100,2,2